Using the Shopify API, how can I get the count of orders for a specific product?
Going through the docs, I cannot see a way to filter for a specific product: https://shopify.dev/docs/admin-api/rest/reference/orders/order#count-2021-01
This seems like such a necessary feature yet I'm disappointed to discover it's not possible.. I hope there's a way I simply missed in the docs.
The use for this is displaying text: "42 people have purchased this product".