I’m trying to get all the refunds for orders that were made between a date range (a month), but this is a heavy query so I decided to use the bulk API. The issue is that it has it’s limitations when it comes to connections inside a list
I get this error
Queries that contain a connection field within a list field are not currently supported.
when I run this query (simplified version)
{
orders(query: "createdAt:>'2023-10-01' AND createdAt:<'2023-10-09'", first: 2) {
pageInfo {
hasNextPage
}
edges {
node {
id
customer {
id
email
firstName
lastName
displayName
phone
createdAt
updatedAt
tags
image {
url
}
}
refunds {
id
note
createdAt
updatedAt
refundLineItems(first: 20) {
edges {
node {
lineItem {
id
}
}
}
}
}
}
}
}
}
Basically I don’t know how to get around this unless I get all orders for that time period via the bulk API and then retrieve the refunds order_id by order_id but this kinda defeats the purpose of the bulk API. Any suggestions out there?