Hi there,
I’ve recently run into an issue where the following GraphQL query isn’t returning orders from a customer that are a few months old. Customers who’ve ordered recently are getting orders in the response.
The weird thing is, in the response I see numberOfOrders has the correct value, e.g 2, but the orders array is empty:
query CustomerOrders($customerId: ID!) {
customer(id: $customerId) {
id
email
numberOfOrders
orders(first: 250) {
edges {
node {
id
name
}
}
}
}
}
Is there some limitation I’m hitting? We really need access to a customers full order history for accurate reporting. Is this a scope or app permissions thing?
Any help would be much appreciated
All the best