Hi,
Am running this graphQL query in order to fetch all closed, non-test, orders for specific customers:
customer (id: $customerId) {
orders (query: "status:closed AND test:false" sortKey: PROCESSED_AT reverse: true first: 20) {
edges {
node {
totalPriceSet {
shopMoney {
amount
}
}
}
cursor
}
pageInfo {
hasNextPage
}
}
}
For a specific customer that I know has a single closed order I get this result:
"data": {
"customer": {
"orders": {
"edges": [],
"pageInfo": {
"hasNextPage": true
}
}
}
},
Thing is - if I remove the "test:false" filter (just leave query: "status:closed") I do get the expected result (see below). Don't understand why the original query is returning an empty set + hasNextPage = true !!
App has all required scopes (to my understanding): 'read_products', 'read_customers', 'read_orders'
"data": {
"customer": {
"orders": {
"edges": [
{
"node": {
"name": "#XXXX",
"createdAt": "2018-08-22T05:11:43Z",
"displayFinancialStatus": "PAID",
"displayFulfillmentStatus": "FULFILLED",
"test": false,
"totalPriceSet": {
"shopMoney": {
"amount": "2120.0"
}
}
},
"cursor": "eyJs...."
}
],
"pageInfo": {
"hasNextPage": false
}
}
}
},
User | Count |
---|---|
14 | |
12 | |
10 | |
8 | |
7 |