Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Collection object and the `onlineStoreurl` field

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
24 0 15

Try this 

 

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

Best regards,
mmarienko - Shopify Expert