Collection object and the `onlineStoreurl` field

ThatNickGuy
Visitor
1 0 0

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?

Reply 1 (1)

mmarienko
Shopify Partner
23 0 11

Try this 

 

Screenshot from 2021-11-26 11-54-14.png

Regards, Max Marienko - Shopify Expert