Curious if there is something I need to do to activate the capability to run the shopifyqlQuery function. I’m successfully running other cURL request examples from the documentation using the unstable version of the GraphQL API no problem but when I try and drop in this function I get a ‘Bad Request’ response. My personal app has read_reports scope.
-d '{
"query": "{ shopifyqlQuery(query: "from sales show total_sales by month since -1y until today") { __typename ... on TableResponse { tableData { rowData columns { name dataType displayName } } } parseErrors { code message range { start { line character } end { line character } } } } }"
}'
This example is lifted directly from the docs here: https://shopify.dev/api/admin-graphql/unstable/queries/shopifyqlQuery#examples-Get_a_table_data_response_by_using_ShopifyQL_query