---
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
metadata:
  effectiveApiVersion: 2022-07
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2022-04-01T11:27:59-04:00'
  postedAt: '2022-07-01T00:00:00-04:00'
  updatedAt: '2024-12-13T17:24:33-05:00'
  effectiveAt: '2022-07-01T00:00:00-04:00'
---

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).
