shopifyql Query
Requires access scope. Also: Level 2 access to Customer data including name, address, phone, and email fields. Please refer to protected customer data requirements.
Executes a ShopifyQL query to analyze store data and returns results in a tabular format.
The response includes column metadata with names, data types, and display names, along with the actual data rows. If the query contains syntax errors, then the response provides parse error messages instead of table data.
Read the ShopifyQL reference documentation for more information on how to write ShopifyQL queries.
Arguments
- query (String!)
- Anchor to queryquery•String!required
A ShopifyQL query string following the ShopifyQL syntax. Queries must include
to specify the data source (such assales,orders, orcustomers) andto select metrics and dimensions. Example:.
Anchor to Possible returnsPossible returns
- ShopifyqlQueryResponse (ShopifyqlQueryResponse)
- Anchor to ShopifyqlQueryResponseShopifyql•Shopifyql
Query Response Query Response A response to a ShopifyQL query.
- Anchor to parseErrorsparse•[String!]!
Errors non-null A list of parse errors, if parsing fails.
- Anchor to tableDatatable•Shopifyql
Data Table Data The result in a tabular format with column and row data.