Collection object and the `onlineStoreurl` field

Hi,

I am hitting the 2021-10 version of the graphql Storefront api and am trying to get the store url of my collection.

In the api doc here https://shopify.dev/api/storefront/reference/products/collection it lists onlineStoreUrl as a field within the Collection object but whenever I hit

{
  collection(id: "my id") {
      id
      title
      description
      onlineStoreUrl
    }
}

I get the response saying “Field ‘onlineStoreUrl’ doesn’t exist on type ‘Collection’”.

Is there something wrong with the documentation or does this need to be hit in a special way?

Try this