CartLinesUpdatePayload
Payload returned by the cartLinesUpdate mutation. This type contains the updated cart data and any errors that occurred during the cart lines update operation.
Type Definition
type CartLinesUpdatePayload {
cart: Cart
userErrors: [UserError]!
}Fields
| Field | Type | Description |
|---|---|---|
cart | Cart | The updated cart |
userErrors | [UserError]! | List of errors that occurred during cart lines update |
Relationships
CartLinesUpdatePayload is returned by the cartLinesUpdate mutation. It contains a reference to the updated Cart object and provides a list of UserError objects that detail any validation or processing errors that occurred during the cart lines update operation.
Example
{
cartLinesUpdate(cartId: "eyJhbGciOiJIUzI1NiJ9...", lines: [{id: "12345", quantity: 2}]) {
cart {
id
totalQuantity
}
userErrors {
field
message
}
}
}Implements
This type does not implement any interfaces.