Headless commerce and custom storefronts with Shopify APIs and SDKs
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
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023