GraphQL API using incorrect version.

DanDavidson
Visitor
3 0 0

I'm developing my first app -- when I make a GraphQL query in developer mode the API returns an API Deprecation Notice with the response.

Seems it attempts to use the 2020-10 version of the API when it should be using 2021-07 version.

I can't find anywhere in code or configuration where I tell it to use the 2020-10 version.

Example:

```API Deprecation Notice: {
  message: 'https://help.shopify.com/api/getting-started/api-deprecations',
  path: 'https://myapp.myshopify.com/admin/api/2020-10/graphql.json'
}```

I have not tested this in production, but I'd assume it would use the latest version in dev mode. 
Has anyone else dealt with this before?  

Replies 3 (3)

GrahamS
Shopify Staff (Retired)
193 36 53

Hey @DanDavidson ,

Have you checked the webhook version being used in the admin private app panel? This kind of notice can be returned if that configuration is out of date, even if your app is hitting a more up to date version when sending requests. It may look something like this:

02-35-ztims-3q2j8

Best,

To learn more visit the Shopify Help Center or the Community Blog.

DanDavidson
Visitor
3 0 0
That is good insight. I am using the latest webhook version, but it doesn’t seem to update the API version like I thought it might.

KassaKirppu
Shopify Partner
2 0 0

Hi!

I'm having the exact same problem. Have you figured out how to configure your app to use the latest version?