Skip to main content
Version: 2.0.0

Cart Mutations

Operations registered in src/gql/mutations/cart/*.

Available Mutations

How To Work With Cart Mutations

  1. Start with createGuestCart (guest flow) or createCustomerCart (logged-in flow).
  2. Save cartId in your frontend state.
  3. Run cart item/coupon/gift card mutations against that cartId.
  4. Use cart query to refresh totals, selected methods, and validation-driven changes.

Notes

  • createCustomerCart requires an authenticated GraphQL user context.
  • Convert mutations are intended for login/logout transitions where the cart must persist.