I'm unable to retrieve Refunded LineItems from an Order using the bulk api.
I get the following error:
"Queries that contain a connection field within a list field are not currently supported."
I don't want to use Refund endpoint in Bulk GraphQl to get the refund line items because it requires `refund id` and it will slower down the process by first fetching all the ids of refunds and then querying them individually.
Below is the query I'm using:-
mutation {
bulkOperationRunQuery(
query: """
{
orders(query: "updated_at:>'2020-01-01T05:39:32Z' AND updated_at:<'2020-07-29T06:14:15Z'") {
edges {
node {
id
name
createdAt
updatedAt
shippingLine{id}
taxesIncluded
refunds {
id
createdAt
updatedAt
totalRefundedSet{shopMoney{amount, currencyCode}}
refundLineItems(first:10)
{
edges
{
node
{
location
{
name
}
subtotalSet{shopMoney{amount}}
quantity
}
}
}
}
}
}
}
}
"""
)
{
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}
User | Count |
---|---|
13 | |
12 | |
6 | |
6 | |
5 |