Skip to Content

CartLinesUpdatePayload

Payload returned by the cartLinesUpdate mutation

Type Definition

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

Fields

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

Relationships

CartLinesUpdatePayload is returned by the cartLinesUpdate mutation and contains a reference to the updated Cart object. The userErrors field provides information about any errors that occurred during the update operation.

Example

{ cartLinesUpdate(cartId: "eyJhbGciOiJIUzI1NiJ9...", lines: [{id: "12345", quantity: 2}]) { cart { id lines(first: 10) { edges { node { id quantity } } } } userErrors { field message } } }

Implements

None