Empty Cart

Use the emptyCart mutation to remove all items from a cart.

Mutation

emptyCart(input: EmptyCartInput!): Cart!

EmptyCartInput

ArgumentTypeDescription
idID!The id of the Cart you wish to empty

Example

mutation {
  emptyCart(input: { id: "ck5r8d5b500003f5o2aif0v2b" }) {
    id
    totalItems
    totalUniqueItems
  }
}