Skip to main content

cartItemBulk

Perform bulk operations on multiple cart items.

Allows adding, updating, or removing multiple cart items in a single operation. This is more efficient than individual item operations and ensures consistency across all changes.

Possible errors:

  • CART_NOT_FOUND_ERROR: One or more carts do not exist
  • CART_ITEM_BULK_ERROR: Failed to perform bulk operations
  • PRODUCT_NOT_FOUND_ERROR: One or more products do not exist
  • CART_ITEM_NOT_FOUND_ERROR: One or more cart items do not exist
cartItemBulk(
input: CartItemsBulkUpsertInput!
): BulkResponseData!

Arguments

cartItemBulk.input ● CartItemsBulkUpsertInput! non-null input

Bulk cart item operations configuration.

Contains arrays of items to add, update, or remove across one or more carts. Each operation is validated and applied atomically.

Type

BulkResponseData object