Missing field order_id on Line Items order

Hi community! I noticed the field order_id is to null value when i do a query to line items edge of a single order. It’s a minor problem because i already have the order_id to do the query but a correct value on this field will simplify the ETL process for a large amount of data.

Request id: 601d21e5597feba1bacaf89a

Hi @Eduardo !
Thanks for catching that!
I will make a ticket for our engineers to fix that value.

In the meantime you can use the id and legacy_id on the body, that should always match for all those line items
Like this:

query {
  order(id: “your ID”) {
    request_id
    complexity
    data {
      id
      legacy_id
      line_items {
        pageInfo {
          hasNextPage
        }
        edges {
          node {
            sku
            quantity
            fulfillment_status
          }
          cursor
        }
      }
    }
  }
}

Thanks again!
Tom