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?
Hi
Checkout UI Extensions all receive as part of their standard API the 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.