Hi, I need to get access to the inventoryHistoryUrl in the object InventoryItem via GraphQL
I need to get programmatic access to the history so we can basically screen scrape the history and put it in table format.
The Graphql documentation seems wrong, the following request does not work:
curl -X POST \
https://your-development-store.myshopify.com/admin/api/2023-10/graphql.json \
-H 'Content-Type: application/json' \
-H 'X-Shopify-Access-Token: {access_token}' \
-d '{
"query": "query { inventoryItem(id: "gid://shopify/InventoryItem/30322695") { id tracked sku } }"
}'
[Direct from the docs from Shopify]
Obviously I put in my access_token, my actual store URL, and the inventory item from the .json structure of the product and variant:
Has anyone got this working (getting the inventory item back via GraphQL) ?? I know I can add the inventoryHistoryUrl field in the request once it works.
Or is their a better way to get the inventory history for a variant which is all I care about.
Thanks.

