Control GraphQL API version from shopify app CLI (node)

Topic summary

A developer building a Shopify app with the latest Shopify CLI (v2.13.0) using Node.js/React needs to use the Shopify GraphQL Admin API version 2022-01.

  • Problem: API calls default to version 2021-10, leading to errors incompatible with their code.
  • Request: Guidance on how to control or set the GraphQL API version from within the app code, or how to change the CLI’s default API version.
  • Context: Versioning refers to Shopify’s dated API versions (e.g., 2021-10, 2022-01) that determine available fields and behavior in GraphQL endpoints.

Status: No solution or workaround provided in the thread; the question remains open without responses or confirmed steps to change the default version.

Summarized with AI on February 21. AI used: gpt-5.

Hello

We are building a shopify app using the CLI (latest) and we need to access the latest GraphQL version 2022-01

Is there a way to control the version from the app code?

We are getting errors when calling the API because the version (default) is 2021-10.

Can we change this default?

shopify CLI ver 2.13.0

type: nodejs/react

Thanks.

G.