For the first time I'm working with Shopify Storefront API (v. 2020-10, latest) and trying out GraphQL (I'm used to REST).
I'm able to get all the products, but if I add the field "quantityAvailable" an error occur:
Field 'quantityAvailable' doesn't exist on type 'ProductVariant'
I'm following the docs where the field is listed, can you help me understand what am I doing wrong?
Edit #1 I've already enabled "Read inventory of products and their variants" in Storefront API Permissions.
Edit #2 I'm sending a POST request to https://{my-shopify-website}/api/graphql attaching content-type and X-Shopify-Storefront-Access-Token as header
/api/2020-10/graphql
or/api/graphql
end-point? The unstable seems to have issues and doesn't includequantityAvailable
but the/api/2020-10/graphql
includes it. – drip