Is it possible to query more than one namespace

Solved

Is it possible to query more than one namespace

GrantDB
Shopify Partner
73 3 14

 

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 188

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 188

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.