- For our
inventory_changes
query, we added thereason
filter.
This filter will try to find what you pass within the whole text for the change reason. This means it can be at the beginning, end, or middle. However, due to performance issues, this filter will work best with shorter timespans, and it works with a limit of 60 days.
query{
inventory_changes(reason:"string" date_from:"2024-01-01" date_to:"2024-02-28"){
data{
edges{
node{
sku
created_at
previous_on_hand
change_in_on_hand
warehouse_id
reason
}
}
}
}
}
- For our
orders
query we now have ahas_backorder
filter.
This filter will filter orders based on the backorder quantity of their line items.
If it is set to true
it will return return orders with at least 1 line_item
with backorder_quantity
> 0.
If it is set to false
it will return orders with no backorders at all.
query{
orders(has_backorder:false){
data{
edges{
node{
order_number
line_items(first:10){
edges{
node{
backorder_quantity
}
}
}
}
}
}
}
}