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
New product model - deprecated REST endpoints #1008
Comments
GraphQL has been supported for a while via the |
Correct, you can execute a graph query but either I'm missing some documentation somewhere or there's not yet types for all of the graphql model? |
And if I am having a moment where I'm just totally missing a concept.... shame on me, and apologies. My thoughts are, should there be a branch to replace the underlying implementation of the product service and product variant service for non-breaking changes to clients? |
There types for all graph objects are actually already in the library, but we don't have enough docs about it. This file shows a couple of example: |
@tig66208 We're starting a 7.0 release very soon, I just need to create all the tracking issues for the more pressing breaking changes that I want to include in the release. I'll work on getting some thorough docs written up for using the graph service and the GraphQL types that we have built into ShopifySharp already. I agree they're not easy to discover since they're not documented anywhere. I'll change that this weekend, but the link that @clement911 sent to the tests should get you started. We both use the GraphService in production and it works well, I have some QoL improvements planned for 7.0 as well. |
Ah, yes.... ok I see it in the Entities/GraphQL/GraphQL.generated now. So, just to confirm:
|
Yes, that is correct. Types are used for the return types. |
Thank you BOTH. |
So...... what's the plan here, folks?
https://shopify.dev/docs/api/admin/migrate/new-product-model/api-updates
Looks like the REST API endpoints for products / variants is being deprecated with no replacement. This is.... less than awesome. I have enough new feature / mission critical things to be built, the last thing I need is having to do maintenance I wasn't planning, so .... thanks Shopify.
I know there has been some discussion about support of GraphQL, but this is going to force the matter some, don't we think?
Edit to add this fun nugget:
"Shopify’s API platform is GraphQL-first. Going forward, our approach to managing products programmatically will reflect that. We’ll be fully deprecating our product REST Admin API endpoints and continuing to build on the changes to the product model in the GraphQL Admin API only."
The text was updated successfully, but these errors were encountered: