Skip to Content

CartLinesAddPayload

Payload returned by the cartLinesAdd mutation

Type Definition

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

Fields

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

Relationships

CartLinesAddPayload is returned by the cartLinesAdd mutation and contains a reference to the updated Cart object. It also includes a list of UserError objects that detail any validation or processing errors that occurred during the cart lines addition operation.

Example

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

Implements

None