Conversations about creating, managing, and using metafields to store and retrieve custom data for apps and themes.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Is it possible to query more than one namespace, I have tried some ways but they don't work
This works for one: metafields(first: 20 namespace: "example1")
But I would like: metafields(first: 20 namespace: "example1 or example2")
Thank
Grant
{ productByHandle(handle: "hcukwork-107163") { id title handle metafields(first: 100) { edges { node { description id key legacyResourceId namespace value valueType } } } variants(first: 20) { edges { node { sku title metafields(first: 20 namespace: "example1") { edges { node { id key namespace value } } } } } } } }
Solved! Go to the solution
This is an accepted solution.
Hey @GrantDB ,
From my knowledge, the answer is no. The "namespace" input field for the product_variants.metafields connection only accepts a String value for just one specific namespace.
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hey @GrantDB ,
From my knowledge, the answer is no. The "namespace" input field for the product_variants.metafields connection only accepts a String value for just one specific namespace.
To learn more visit the Shopify Help Center or the Community Blog.