How to get order's CalculatedLineItem when using orderEditAddLineItemDiscount

How to get order's CalculatedLineItem when using orderEditAddLineItemDiscount

AL33
Shopify Partner
43 0 3

Hi,

 

I am using the orderEditAddLineItemDiscount function, I can get the CalculatedOrder by follow code:

mutation beginEdit{
orderEditBegin(id: "gid://shopify/Order/1234"){
calculatedOrder{
id
}
}
}

 

But how can I get the CalculatedLineItem id when using orderEditAddLineItemDiscount ?

 

Another question, does the line item of the order have an updatable reference field?

Replies 0 (0)