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

first batch of REST to GraphQL conversions for products and variants #393

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

tekhaus
Copy link
Collaborator

@tekhaus tekhaus commented Sep 1, 2024

Shopify will fully deprecate the REST product and variant endpoints as of Feb 1, 2025. To prepare for that deprecation, many of the tasks in the library will need to be converted to use GraphQL in lieu of those endpoints.

Broadly, any usage of the following REST object calls will need to be converted:

- shop.products
- shop.variants
- collection.products
- inventory_item.variant
- inventory_level.variant
- line_item.product
- line_item.variant
- product.collections
- product.images *️
- product.metafields
- product.variants *️
- variant.inventory_item
- variant.inventory_levels
- variant.metafields
- variant.product

Additional REST conversions may make sense along the way.

This batch includes some of the more popular tasks as well as a variety of usage that can be referenced for additional conversions.

@tekhaus tekhaus merged commit cb876ad into lightward:main Sep 3, 2024
2 checks passed
@tekhaus tekhaus deleted the update/remove-rest-calls-batch-1 branch September 3, 2024 17:07
@github-actions github-actions bot locked and limited conversation to collaborators Sep 3, 2024
-- for product create/update, filter the products query with the product ID that caused the event
{% endcomment %}

{% if event.topic == "shopify/products/update" %}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: change this to "contains" on next batch to support product create

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

Successfully merging this pull request may close these issues.

2 participants