--- title: New totalQuantity field on the Storefront API Cart object - Shopify developer changelog description: Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: https://shopify.dev/changelog/new-totalquantity-field-on-the-storefront-api-cart-object md: https://shopify.dev/changelog/new-totalquantity-field-on-the-storefront-api-cart-object.md --- [Back to Developer changelog](https://shopify.dev/changelog) July 1, 2022 Tags: * API * 2022-07 # 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](https://shopify.dev/api/storefront/unstable/objects/Cart#top).