Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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

Solved

Is it possible to query more than one namespace

GrantDB
Shopify Partner
82 3 15

 

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 } } } } } } } }

 

Accepted Solution (1)

hassain
Shopify Staff (Retired)
624 104 189

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.

View solution in original post

Reply 1 (1)

hassain
Shopify Staff (Retired)
624 104 189

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.