Schema Documentation
emptyCart
Description
The payload for the emptyCart mutation
Response
Returns an
EmptyCartPayload
Arguments
Name | Description |
---|---|
input -
EmptyCartInput! | Input for the emptyCart mutation |
Example
Query
mutation emptyCart($input: EmptyCartInput!){
emptyCart(input: $input){
cart {
...CartFragment
}clientMutationIddeletedCart {
...CartFragment
}
}
}
Variables
{"input":EmptyCartInput}
Response
{"data":{"emptyCart":{"cart":Cart,"clientMutationId":"abc123","deletedCart":Cart}}}