mutation

deleteCart

Delete all items from the user's cart and resets it to its initial state, providing a clean slate for new selections.
Arguments
The unique identifier of the cart.
Response
message
String
Message for delete cart response.
success
Boolean
True if cart is archived successfully. False if not archived.
Mutation
1mutation deleteCart($id: String) {
2 deleteCart(id: $id) {
3 message
4 success
5 }
6}
Try it
Input Variables
1{
2 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e"
3}
Response
1{
2 "deleteCart": {
3 "message": "message",
4 "success": true
5 }
6}