Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL API Deprecation Notice: be more clear about what is deprecated #1993

Closed
mariusa opened this issue Jan 20, 2025 · 1 comment
Closed

Comments

@mariusa
Copy link

mariusa commented Jan 20, 2025

Overview/summary

On various GraphQL calls, sometimes 'API Deprecation Notice' error is shown.
The message is generic: "message":"https://shopify.dev/api/usage/versioning#deprecation-practices"

Please make the message point out what exactly was deprecated, since this is known on SHopify servers executing the call and producing the message.

Current behaviour: Besides reading the docs, one now has to remove most of the fields, see the error gone, then add a few of the at a time to figure out the problematic field.
And sometimes the docs aren't helpful, eg implemented this
https://shopify.dev/docs/api/admin-graphql/2025-01/mutations/productUpdate?language=Node.js

and the error is

{"message":"https://shopify.dev/api/usage/versioning#deprecation-practices","path":"https://test1.myshopify.com/admin/api/2024-10/graphql.json","body":"{\"query\":\"\\nmutation UpdateProductWithNewMedia($input: ProductInput!, $media: [CreateMediaInput!]) {..."}

Thanks

@lizkenyon
Copy link
Contributor

Hi there 👋

I agree that this experience could be improved!

Right now the this package returns, what is returned by the API itself, so at the package level there is not too much more we can do right now.

I would recommend creating a post describing this issue in the .dev community. Posting here will get it automatically flagged to the owning team, and will help with their prioritization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants