FROM CACHE - en_header

Query all metafield namespaces?

ClementBR
Shopify Partner
128 2 33

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

Replies 3 (3)
Jesse_Vogt
Shopify Staff
Shopify Staff
12 2 9

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?

ClementBR
Shopify Partner
128 2 33

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
128 2 33

Any ideas?