CartLinesAddPayload
Payload returned by the cartLinesAdd mutation. This type contains the updated cart information and any errors that occurred during the cart lines addition operation.
Type Definition
type CartLinesAddPayload {
cart: Cart
userErrors: [UserError]!
}Fields
Relationships
CartLinesAddPayload is the return type for the cartLinesAdd mutation. It contains a Cart object representing the updated shopping cart state after line items have been added. The userErrors field provides validation and operation error details as UserError objects.
Example
mutation {
cartLinesAdd(cartId: "eyJhbGciOiJIUzI1NiJ9...", lines: [{merchandiseId: "12345", quantity: 1}]) {
cart {
id
lines {
edges {
node {
id
quantity
}
}
}
}
userErrors {
field
message
}
}
}Implements
This type does not implement any interfaces.