Getting an external order_number with graphQL, in shipments query

Hi,

Is there a shipments query that can also return an order name, like the legacy API does when querying shipments(in order_number field)? The below query’s order_number in the shipping_labels section is actually just returning the legacy id. If not, I will need to use another query to lookup order_number in the order query (which is the order name i’m referring to above) by order id. Thanks!

query {
shipments(date_from: “2020-06-04T19:19:40”) {
request_id
complexity
data(first: 1 after:"") {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
order_id
user_id
warehouse_id
pending_shipment_id
address {
name
address1
address2
city
state
country
zip
phone
}
picked_up
needs_refund
refunded
delivered
shipped_off_shiphero
dropshipment
created_date
line_items {
edges {
node {
id
legacy_id
line_item_id
shipment_id
shipping_label_id
quantity
line_item{
sku
}
}
}
}
shipping_labels {
id
legacy_id
account_id
shipment_id
order_id
box_id
status
tracking_number
order_number
carrier
shipping_name
shipping_method
cost
box_code
address {
name
address1
address2
city
state
country
zip
phone
}
device_id
delivered
picked_up
refunded
needs_refund
profile
partner_fulfillment_id
full_size_to_print
packing_slip
warehouse
insurance_amount
carrier_account_id
dimensions {
weight
}
}
}
cursor
}
}
}
}

Hi @Orion
Yes I think what you might be looking for is inside order {order_number}
Something like this:

query {
  shipments(date_from: "2020-06-04T19:19:40") {
    request_id
    complexity
    data(first: 1) {
      pageInfo {
        hasNextPage
        hasPreviousPage
        startCursor
        endCursor
      }
      edges {
        node {
          id
          legacy_id
          order_id
          order{
            order_number
          }
…

Let me know if that doesn’t help
Thanks!
Tom