A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi
I have custom attributes added to the line items on my orders, like this
for a line item the custom attributes: _handles, _products, _sku and _quantityPerProduct are added (hidden using '_') to do some validations on the frontend
but after the order is paid, I want to delete/modify the attribute: _handle
So far I can't find any mutation that allows me to modify a custom attribute on a line item in an order
Thanks in advance
Solved! Go to the solution
This is an accepted solution.
It doesn't look like you can edit the existing line item, but it does look like you could potentially add + remove (essentially replace) it to achieve the same thing. I haven't tested it, but looks like in the admin removal is handled by setting quantity to 0.
This is an accepted solution.
It doesn't look like you can edit the existing line item, but it does look like you could potentially add + remove (essentially replace) it to achieve the same thing. I haven't tested it, but looks like in the admin removal is handled by setting quantity to 0.
yes, I tried that and works but when you look the order details you can see the remove/add steps on the order history, that's why I wondered if there was a direct way to do it
But as you said, I also think this is the only way.
Thanks!!