A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hello,
I have this GraphQL query which returns the correct results using the GraphQL app from shopify, but returns zero results when calling it via a Private App.
query ($first: Int!, $query: String, $before: String, $after: String) {
orders(first: $first, before: $before, after: $after, query: $query) {
pageInfo {
hasNextPage
hasPreviousPage
}
edges {
cursor
node {
createdAt
lineItems(first: 20) {
edges {
node {
variant {
id
}
product {
id
}
}
}
}
}
}
}
}
{
"query":"created_at:>=2021-12-02",
"first":10
}
I thought it might be a scoping issue but I have read access to everything. Again this query returns the correct information when using the GraphQL app from shopify (https://shopify-graphiql-app.shopifycloud.com/) But when I send the query over the wire I get zero results back.
If I remove the query "created_ad:>=2021-12-02" I then get results start at the first order the store ever had. Not exactly what I want.
Any ideas what might be happening?
Cheers,
Gary
I haven't been able to replicate this result through my testing - could you please share the x-request-id found in the response header from Shopify? I will try to take a look in our logs to find more information.
Thanks!
To learn more visit the Shopify Help Center or the Community Blog.