Query all metafield namespaces?

ClementBR
Shopify Partner
153 2 44

Is it possible to query a list of all metafields namespaces with API?

Replies 3 (3)

Jesse_Vogt
Shopify Staff
14 2 10

We do not offer a way to query all namespaces outside of paging through all metafields and collecting the namespaces yourself. If you can share, what is your use case for this?

To learn more visit the Shopify Help Center or the Community Blog.

ClementBR
Shopify Partner
153 2 44

Hi @Jesse_Vogt 

Our use case is that we need to receive all metafields (from all namespaces) in webhooks.

When creating a webhook, we can provide a list of namespaces to be included. 

In order to receive all metafields, we must provide all namespaces. Ideally there would be an easier way to specify that we want all namespaces included.

ClementBR
Shopify Partner
153 2 44

Any ideas?