I am using the Shopify GraphQL admin API to get the details of each of the products. But I am not able to get an important detail for the product - that is the total number of orders for this particular product or in other words - the total number of products sold of this product.
Is there any way to get this number without traversing all of the orders on the store and checking for the matching product_ids.
Any kind of help would be extremely helpful