removeCart
mutation is responsible for deleting an existing shopping cart based on the provided cart ID. It allows users to remove a cart that is no longer needed or relevant.
Arguments
input
: CartDeleteInput!
The input
object contains the unique identifier (ID) for the cart that needs to be deleted.
Returns
DeletedCart.deletedId
: DeletedCart
The unique identifier (ID) of the deleted cart.
Examples
{
"input": {
"id": "{{cartId}}"
}
}
mutation ($input: CartDeleteInput!) {
removeCart(input: $input) {
deletedId
}
}