GraphQL API using incorrect version.

DanDavidson
New Member
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
Shopify Staff
193 35 48

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,

Graham S | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

DanDavidson
New Member
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
New Member
1 0 0

Hi!

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