How to know if a variant track inventory?

Hi there!

I am working on the REST migration of the Product API but I am having trouble finding if a variant has inventory tracking enabled.

That was easy with the REST API, but I cannot find this information in GraphQL. I find it on the product side, but I am not sure I understand what is means (at least 1 variant tracks inventory?). I need to know it for each variant.

Also weird: if the variant had inventory in the past, but is not tracking inventory anymore, asking for the inventory level of the variant will still return the inventory before tracking was disabled.

Thanks for your help,
Edouard

Never mind, I found it ! The tracked field in the inventory item.