Bulk Operation missing data in python request

Highlighted
New Member
3 1 0

I am trying to run a Bulk Operation using Python requests but there is missing data in the result.

Here is the query:

mutation{
bulkOperationRunQuery(
query:"""
{
customers{
edges{
node{
id
ordersCount
averageOrderAmountV2{
amount
}
totalSpent

orders{
edges{
node{
id
totalPriceSet{
shopMoney{
amount
}
}
lineItems{
edges{
node{
id
name
quantity
}
}
}
}
}
}
}
}
}
}
"""
){
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}

I have tried this query in GraphiQL and it works but when I run the same query using python requests, the only data that is returned is the customer data. I seems to be ignoring the orders completely.

I have even tried querying only the orders which works in GraphiQL but returns a null url using python.

Any ideas on what might be the problem?

0 Likes