How to add line item properties following cart transform operation

I know this has been asked multiple times that cart line item properties are lost after a cart transform operation but I’ve seen a few apps re-adding them to the order. How are they able to do it? I don’t see any GraphQL documentation for the same.