queryShop utility is a function that helps you query the Storefront API within
queryShop is the
API route version of
useShopQuery, which is available in server components.
Example codeAnchor link to section titled "Example code"
queryShop utility accepts a single argument object with the following properties:
||A string of the GraphQL query. If no query is provided, then the
||An object of the variables for the GraphQL query.||No|
||A string corresponding to a valid locale identifier like