I’m running ShopifyQL Queries through the GraphQL API on a live merchant store with the Advanced Shopify plan.
The query returns a response but the data in the response is not correct.
Query:
{shopifyqlQuery(query: "FROM orders SHOW sum(net_sales) AS monthly_net_sales GROUP BY month SINCE -1m ORDER BY month") {
__typename
... on TableResponse {
tableData {
unformattedData
rowData
columns {
name
dataType
displayName
}
}
}
parseErrors {
code
message
range {
start {
line
character
}
end {
line
character
}
}
}
}
}
The response:
{
"data": {
"shopifyqlQuery": {
"__typename": "TableResponse",
"tableData": {
"unformattedData": [],
"rowData": [],
"columns": [
{
"name": "month",
"dataType": "month",
"displayName": "Month"
},
{
"name": "monthly_net_sales",
"dataType": "price",
"displayName": "Monthly net sales"
}
]
},
"parseErrors": null
}
},
"extensions": {
"cost": {
"requestedQueryCost": 7,
"actualQueryCost": 4,
"throttleStatus": {
"maximumAvailable": 1000,
"currentlyAvailable": 996,
"restoreRate": 50
}
}
}
}
The store has been live since 2015 and definitely has sales.
Any help is appreciated!