Skip to Content

CartLinesRemovePayload

Payload returned by the cartLinesRemove mutation.

Type Definition

type CartLinesRemovePayload { cart: Cart userErrors: [UserError]! }

Fields

FieldTypeDescription
cartCartThe updated cart
userErrors[UserError]!List of errors that occurred during cart lines removal

Relationships

CartLinesRemovePayload is returned by the cartLinesRemove mutation. It contains a reference to the updated Cart object after line items have been removed, and includes a list of UserError objects that describe any errors that occurred during the operation.

Example

{ cartLinesRemove(cartId: "eyJhbGciOiJIUzI1NiJ9...", lineIds: ["12345"]) { cart { id lines { edges { node { id quantity } } } } userErrors { field message } } }

Implements

None