Delete Cart
Use the deleteCart mutation to delete a cart and all items associated to it.
Mutation
deleteCart(input: DeleteCartInput!): DeletePayload!DeleteCartInput
| Argument | Type | Description |
|---|---|---|
id | ID! | The id of the Cart you wish to delete |
DeletePayload
| Field | Type | Description |
|---|---|---|
success | Boolean! | Either true or false |
message | String | A success or failure message |
Example
mutation {
deleteCart(input: { id: "ck5r8d5b500003f5o2aif0v2b" }) {
success
message
}
}