A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi,
I would like to know if it is possible to hide/show a variant when there's (no) stock of that variant using the API. I searched on the documentation but did not find anything like that.
If it is indeed impossible to make such thing, I would like to know if I can delete the variant even if there are active or old purchases. What are the consequences of doing that? Assuming it is possible, I was trying to do some tests retrieving all product so I could delete each one of them without stock. However I have some problems with this approach:
Can anyone help me?
Thanks in advance!