Access "ShippedLineItemLot"

Hello, I see the ShippedLineItemLot in the GraphQL schema, but I do not see how to access it. For example, it isn’t an available field on Shipment or ShipmentLineItem.

I would like to query lot_id, lot_name, lot_expiration_date etc.

Hey @kokua,

Thanks for reaching out!

Looking into this inquiry now, I’ll have an update for you shortly.

Best,
RayanP

1 Like

Hey @kokua,

Thanks for hanging in there!

The ShippedLineItemLot is available under the line_item field. An example query of that field and all its values being queried would look something like:


{
  shipment(id: "string", analyze: true) {
    request_id
    complexity
    data {
      id
      legacy_id
      order_id
      user_id
      line_items(first: 5){
        edges{
          node{
            line_item{
              shipped_line_item_lots{
                id
                legacy_id
                line_item_id
                lot_id
                lot_name
                lot_expiration_date
              }
            }
          }
        }
      }
    }
  }
}

Please let me know if you have any questions or concerns!

Best,
RayanP

1 Like