You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing a weird issue with Shopify's GraphQL API and the webhook API. I'm using NextJS to build my eCommerce site and that uses the GraphQL API to query for products. I am then trying to use on-demand revalidation for that when the client makes updates in Shopify, NextJS can automatically update it. Unforunately while the graphQL api has descriptionHtml the webhook API returns it as body_html.
Is there anyway to handle this in NextJS or get the webhook API to return object keys as how they appear in the GraphQL API? Has anyone run into an issue like this?
GraphQL:
Webhook response:
The text was updated successfully, but these errors were encountered:
Hi,
I'm facing a weird issue with Shopify's GraphQL API and the webhook API. I'm using NextJS to build my eCommerce site and that uses the GraphQL API to query for products. I am then trying to use on-demand revalidation for that when the client makes updates in Shopify, NextJS can automatically update it. Unforunately while the graphQL api has
descriptionHtml
the webhook API returns it asbody_html
.Is there anyway to handle this in NextJS or get the webhook API to return object keys as how they appear in the GraphQL API? Has anyone run into an issue like this?
GraphQL:
Webhook response:
The text was updated successfully, but these errors were encountered: