# Filter orders by "backordered"

**URL:** <https://community.shiphero.com/t/filter-orders-by-backordered/798>\
**Category:** GraphQL API\
**Created:** [September 14, 2020, 5:12am UTC](https://community.shiphero.com/t/filter-orders-by-backordered/798 "2020-09-14T05:12:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjdev](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@sjdev](https://community.shiphero.com/u/sjdev)\
**Post date:** [September 14, 2020, 5:12am UTC](https://community.shiphero.com/t/filter-orders-by-backordered/798/1 "2020-09-14T05:12:47Z")

</div>

How can I write a query to get all backordered orders?

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [September 14, 2020, 12:48pm UTC](https://community.shiphero.com/t/filter-orders-by-backordered/798/2 "2020-09-14T12:48:09Z")

</div>

Hi @sjdev!  
Unfortunately we don’t have a feature for that sorry. To be able to do that [you will have to query each order and get the Backorder quantities](https://community.shiphero.com/t/query-orders-with-backordered-items/742), something like this:

```
query{
  orders(shop_name: "mycustomshop.com"){
    request_id
    complexity
    data(first: 100) {
      edges {
        node {
          id
          legacy_id
          order_number
          fulfillment_status
          line_items(first:10) {
            edges {
              node {
                quantity_pending_fulfillment
                backorder_quantity
              }
            }
          }
        }
      }
    }
  }
} 

```

We are currently working on adding a filter for just “unfulfilled” orders, but that is still under development.  
Please let me know if there is anything else I could help you with.  
Thanks in advance!  
Tom
