For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
How can I query metaobjects (filtering by field) in Storefront API in checkout UI extensions? I hvae a metaobject with 200 entries, but I only want to get the ones with the charge code of "10". Or how would I use graphQL query in the UI extension?
query
method, so it should be possible to query metaobjects in checkout UI extensions using the storefront API.query
The method used to query the Storefront GraphQL API with a prefetched token.
Refer to Storefront API access examples for more information.
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