Remove Item
Use the removeItem mutation to remove any items from the cart.
Mutation
removeItem(input: RemoveCartItemInput!): Cart!RemoveCartItemInput
| Argument | Type | Description |
|---|---|---|
cartId | ID! | The id of the cart the item belongs to |
id | ID! | The id of the item you want to remove |
Example
mutation {
removeItem(
input: { cartId: "ck5r8d5b500003f5o2aif0v2b", id: "5e3293a3462051" }
) {
id
isEmpty
totalItems
}
}