A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
"line_items" of orders: https://shopify.dev/api/admin-rest/2022-01/resources/order#resource_object
It gives information about whether product is deleted or not, but not about variant_id.
It is painful to check if variant_id is still alive.
Can I use 'variant_inventory_management' to assume that the corresponding variant is alive?
The meaning of variant_inventory_management is not documented, but this value for deleted variant seems to be null.
I found the meaning of "inventory_management" from product variant page:
https://shopify.dev/api/admin-rest/2022-01/resources/product-variant#resource_object
It can be null when "Track quantity" of the product is disabled.