Hey @buildpath - I took a quick look at your GraphQL query and I think I may have an answer for why you’re getting that 400 error.
You’d need to set some parameters in your query so that we can return a paginated list of them in a response call. Essentially, imagine your store has 10,000 orders, it would be too much to return in an API response, so we use parameters like “first” or “last” in order to return a more specific amount of results in the API response. There’s a bit more about how this works in our GraphQL documentation and I also wanted to share an example query if you wanted to try this syntax to see if it works and returns a successful response in your app:
query getOrders {
orders {
edges {
node {
id
}
}
}
}
Hope this helps and gives you some next steps for building your app.
Cheers!