How to filter shipments using shipping_method

Hello,
i want to flter the shipments using the shipping_method please how can i implent this urgently
thanks

Hello @karimedrees!
At the moment this are the arguments that can be used when querying shipments:

  • order_id: String
  • date_from: ISODateTime
  • date_to: ISODateTime
  • order_date_from: ISODateTime
  • order_date_to: ISODateTime

What you could do is use the following query:

query{
  shipments{
    request_id
    complexity
    data{
      edges{
        node{
          shipping_labels{
            shipping_method
          }
        }
      }
    }
  }
}

And filter them on your end as you receive them.

Kind regards,
TomasFD