Shopify / hydrogen-v1

React-based framework for building dynamic, Shopify-powered custom storefronts.

Home Page:https://shopify.github.io/hydrogen-v1/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] CRASH on product handle with metafields

nkrmr opened this issue · comments

Describe the bug
My app crash when i add metafields to my product handle request

To Reproduce
When i add metafields to my product handle request like this
Screenshot 2022-12-28 at 12 52 52

I had this error

Screenshot 2022-12-28 at 12 51 56

Additional context

  • Hydrogen version: 2022-10
  • Node version: 16.17.0

Querying metafields has changed in 2022-07 and newer API versions. You now have to query specifically by metafield namespace and key, which can be seen if you expand "Show Arguments" in this documentation link for Product.metafields.

I'm going to close this, as there doesn't appear to be an issue in Hydrogen, but feel free to continue to ask questions here. 👍