Shipments API returning multiple record for the same order

Hi,

I need to fetch shipped orders for the given time range. I’m using shipments API like

query {

  shipments(date_from: "2021-02-24T00:00:00+00:00"

    date_to: "2021-02-24T00:59:59+00:00") {

    request_id

    complexity

    data (first: 200) {

      pageInfo {

        hasNextPage

        hasPreviousPage

        startCursor

        endCursor

      }

      edges {

        node {

            id

            legacy_id

          order_id

          created_date

          order{

            order_number

          }

        }

      }

    }

  }

}

But looks like for each pagination some orders are repeating.
Is there a way to get each order only once in the response for the time frame?

For example, Now order number 001923997 is coming thrice in the time frame (with pagination) date_from: “2021-02-24T00:00:00+00:00”
date_to: “2021-02-24T00:59:59+00:00”

Can I get unique order numbers that got shipped in that time frame?

Thanks in advance!

Regards,
Supritha

Hi @supritha
Thanks for that detailed explanation!
If you use sort does it help avoid this? (about sort)
Thanks in advance!
Tom