A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I am building an integration where I need to update a product's metafield (language) via GraphQL. I am able to do this easily but I need to be able to pull the metaobjects first so I can get the metaobject ID for the specific language I want to add to the product metafiled.
For example:
I have a book as a product. In my automation on the backend, I match the book to my Airtable database and from there get the language of the book. I'd want to be able to map the correct metaobject ID for the language metafield by filtering the metaobject name with the Airtable language name record.
Any ideas on how to do this? Maybe there's a way to export the metafield options and I can store that in Airtable
Hi Joshnavoa,
If you're using the Admin GraphQL API , you can query
by displayName
(and handle
) for the Metaobject - would this help?
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog