Schema Documentation
addToCart
Description
The payload for the addToCart mutation
Response
Returns an
AddToCartPayload
Arguments
Name | Description |
---|---|
input -
AddToCartInput! | Input for the addToCart mutation |
Example
Query
mutation addToCart($input: AddToCartInput!){
addToCart(input: $input){
cart {
...CartFragment
}cartItem {
...CartItemFragment
}clientMutationId
}
}
Variables
{"input":AddToCartInput}
Response
{"data":{"addToCart":{"cart":Cart,"cartItem":CartItem,"clientMutationId":"abc123"}}}