Retrieving Metafield Definitions for All Owner Types: Is it Possible?

Hi,

I’m building a Shopify app that creates multiple metafield definitions (for orders, collections, etc)

I’m trying to retrieve a list of metafields associated with each of the metafield definitions (without specifying the owner type argument)

Please note the key in the key field is the same across all those metafield definitions - so if I got the metafield definition for collection, order, customer, etc I’d be able to paginate through them all (that’s the goal)

Please see following query:


{
metafieldDefinitions(ownerType:PRODUCT, first: 1, key: "key") {
nodes {

metafields(first: 5) {
nodes {

owner {

... on Product {
id
}

}

}
}
}
}
}

If you have any information on this, please share - I’d really appreciate it!