No way to append line items to a draft order?

Am I correct in saying there is no way to add line items to a draft order?
The draftOrderUpdate mutation only seems to replace line items which means I now need to store all existing draft order line attributes to safely append line items to a draft order.

1 Like

I guess so , every time i wanna update the line items of draftorder , i replace all of them.

Hey @ArthurCheek, Eric’s correct, the lineItems field replaces all items. The standard pattern is to fetch existing items, merge your additions, then update with the complete array.