Using ‘first’ argument in a bulk query i am trying to get 1000 customers out of 500000 and i’m getting all 500000 customers. Is there a reason for this?
How can i get different JSONL files each contains 1000 customers?
The reason for taking 1000 customers is that if 500000 customers are found in one file then the file size becomes bigger and it becomes difficult to read.
Here is my query:
mutation {
bulkOperationRunQuery(
query:“”"
{
customers(first:1000) {
edges {
node {
id
firstName
lastName
email
}
}
}
}
“”"
)
{
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}
Can someone help how to retrieve line items only using Bulk graphql ,
Below query is showing the error (‘userErrors : ‘, [{u’field’: [u’query’], u’message’: u"The parent ‘node’ field for a nested connection must select the ‘id’ field. Connection fields without ‘id’: orders."}]). Please advise whether we can retrieve only line items using bulk graphql ?
If you re-read the thread above, I believe the way that GQL operates requires at least an id field be present for any edges.node scenario. Personally I would rather have a little “too much” data, as compared to not enough. It’s easier to discard any fields that you don’t want than make additional calls or jump through another hoop if you need other fields, right?