---
title: Added new field ordersCount to the query root - 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/added-new-field-orderscount-to-the-query-root'
  md: >-
    https://shopify.dev/changelog/added-new-field-orderscount-to-the-query-root.md
metadata:
  effectiveApiVersion: 2024-07
  affectedApi:
    - displayName: Admin GraphQL API
      handle: admin-graphql
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2024-05-21T04:31:37-04:00'
  postedAt: '2024-06-01T10:00:00-04:00'
  updatedAt: '2024-05-21T10:25:26-04:00'
  effectiveAt: '2024-06-01T10:00:00-04:00'
---

June 1, 2024

Tags:

* Admin GraphQL API
* 2024-07

# Added new field `ordersCount` to the query root

As of version `2024-07` of the Admin GraphQL API, you can use the new `ordersCount` field to count the orders for a given shop.

Learn more about `ordersCount` on [Shopify.dev](https://shopify.dev/docs/api/admin-graphql/unstable/queries/ordersCount).
