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 descriptionHtml vs Webhook API body_html #1298

Open
MrUltimate opened this issue Feb 8, 2024 · 0 comments
Open

GraphQl descriptionHtml vs Webhook API body_html #1298

MrUltimate opened this issue Feb 8, 2024 · 0 comments

Comments

@MrUltimate
Copy link

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 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:
image

Webhook response:
image

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

1 participant