I am trying to run a few bulk queries for our store orders via the Admin GraphQL API.
When running the queries with the first or last attributes: orders(first: 1000){} or order(last: 1000){}, the attributes are completely ignored and the query seems to be returning every order in the database, as before cancelling the object count per store is well over the requested 1000 limit.
Not sure what is going on.
mutation {
bulkOperationRunQuery(
query: """
{
orders(orders_attributes) {
edges {
node {
createdAt
currencyCode
currentSubtotalLineItemsQuantity
id
}
}
}
}
"""
){
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}