how to write an example of calling ShopifyQL on the Shopify App Bridge?

According to the sample implementation of the document, an error will be prompted after execution, how to call it reasonable!

Write the following code in the pages folder:

The error message returned is as follows:

Hi @yehony , unfortunately ShopifyQL isn’t supported in App Bridge. Could you kindly point me to the documentation that you’re following, so that I can help clarify/correct the information? Thank you!

Excuse me, I have another question here. Is ShopifyQL have any other solutions besides executing on embedded applications, such as access_token?

1 Like

I’m not sure I understand what you mean by access_token, are you referring to your embedded app’s access token, or something specific to ShopifyQL? From my understanding, another way to use ShopifyQL to generate reports is to use the REST API: https://shopify.dev/docs/admin-api/rest/reference/analytics/report?api[version]=2020-07 Might this be what you are looking for?

@hannachen access_token is Access token

When requesting Report according to Rest Api, only shopifyQL statements can be obtained.

Can you request the value of Report through Rest Api, such as the number of orders today, the number of views, etc.

3 Likes

Hey, @yehony Am very interested in your question.Please inform me too if you have somehow figured it out.
Your help will be highly appreciated.

@hannachen Help us if possible ,please