Development discussions around Shopify APIs
Now that the Shopify admin allows store owners to "define" metafields (in Settings), how can the list of such metafield definitions be retrieved via the API? Not the values of specific metafields created in the store, but the definitions.
Solved! Go to the solution
This is an accepted solution.
Hi @natashadisante, interacting with metafield definitions is only supported in GraphQL. In order to retrieve a list of a store's definitions you can do so using the query specified here which expects an argument of ownerType. If you have a specific metafield definition you would like to query by ID please have a look at the reference available here. I hope that helps!
This is an accepted solution.
Hi @natashadisante, interacting with metafield definitions is only supported in GraphQL. In order to retrieve a list of a store's definitions you can do so using the query specified here which expects an argument of ownerType. If you have a specific metafield definition you would like to query by ID please have a look at the reference available here. I hope that helps!
User | RANK |
---|---|
57 | |
11 | |
8 | |
6 | |
6 |
Thanks to all who participated in our AMA with 2H Media on planning your 2023 marketing bu...
By Jacqui Mar 30, 2023Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023