Skip to main content

New totalQuantity field on the Storefront API Cart object

As of GraphQL Storefront API version 2022-07, the Cart object has a new field: totalQuantity. This field returns an integer representing the total number of items in the cart.

Learn more about the Cart object on Shopify.dev.

Was this section helpful?