Przejdź do głównej zawartości

CartLineUpdateInput

An update to apply to an existing cart line — new quantity (set to 0 to remove) and optional attribute updates.

input CartLineUpdateInput {
attributeSelections: [AttributeSelectionInput!]
attributes: [AttributeInput!]
id: ID!
quantity: Int!
}

Fields

CartLineUpdateInput.attributeSelections ● [AttributeSelectionInput!] list input

Replacement list of configurator selections. Omit (or pass null) to keep the existing selections; pass an empty array to clear them.

CartLineUpdateInput.attributes ● [AttributeInput!] list input

Replacement list of custom attributes on the line. Omit (or pass null) to keep the existing list; pass an empty array to clear it.

CartLineUpdateInput.id ● ID! non-null scalar

ID of the cart line to update (CartLine.id).

CartLineUpdateInput.quantity ● Int! non-null scalar

New quantity. Use 0 to remove the line from the cart.

Member Of

cartUpdateLines mutation