Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hello Shopify Community members.
Hope you are doing well.
I am now using ShopifyQL to get analytical data from shopify.
I followed shopifyQL docs from here
But the example query is also not working.
{ shopifyqlQuery( query: "FROM orders SHOW sum(net_sales) AS monthly_net_sales GROUP BY month SINCE -3m ORDER BY month" ) { __typename ... on TableResponse { tableData { unformattedData rowData columns { name dataType displayName } } } parseErrors { code message range { start { line character } end { line character } } } } }
I got empty result.
{ "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 }
If anybody has an idea about it, please let me know.
PS: If anyone knows how to get analytical data from shopify without shopifyQL, I will be really appreciate your help.
Thank you so much.
Were you able to figure out a good workaround for this?
I'm running into basically the same issues and trying to figure out a solution for this (probably not using ShopifyQL)