CartLinesRemovePayload
Payload returned by the cartLinesRemove mutation
Type Definition
type CartLinesRemovePayload {
cart: Cart
userErrors: [UserError]!
}Fields
| Field | Type | Description |
|---|---|---|
| cart | Cart | The updated cart |
| userErrors | [UserError]! | List of errors that occurred during cart lines removal |
Relationships
CartLinesRemovePayload is returned by the cartLinesRemove mutation and contains references to two key types. The cart field provides access to the updated Cart object after line items have been removed. The userErrors field contains an array of UserError objects that describe any validation or processing errors that occurred during the mutation.
Example
{
cartLinesRemove(cartId: "eyJhbGciOiJIUzI1NiJ9...") {
cart {
id
lines(first: 10) {
edges {
node {
id
quantity
}
}
}
}
userErrors {
field
message
}
}
}Implements
This type does not implement any interfaces.