Queries
shopifyCollection
Start Here
Sync & Sell Anything API
- Queries
- Mutations
- Input
- Objects
- Entity errors
- Experimental
GraphQL Types
- Enums
- Interfaces
- Scalars
- Unions
- Objects
- Root errors
- Directives
Queries
shopifyCollection
Returns information about Shopify Collection
Arguments
The Shopify Collection ID.
Returns
Any requested field from the
ShopifyCollection
object.
Example - request
query GetShopifyCollection {
shopifyCollection(id: "123456789") {
id
title
description
productsConnection(first: 5) {
edges {
node {
id
title
description
vendor
url
}
}
pageInfo {
endCursor
hasNextPage
}
}
}
}
Example - response
{
"data": {
"shopifyCollection": {
"id": "123456789",
"title": "Summer Collection",
"description": "A handpicked selection of our summer favorites.",
"productsConnection": {
"edges": [
{
"node": {
"id": "987654321",
"title": "Beach Towel",
"description": "A colorful, soft beach towel perfect for summer days.",
"vendor": "Beachware Co.",
"url": "https://example.com/beach-towel"
}
},
{
"node": {
"id": "987654322",
"title": "Sunglasses",
"description": "Stylish and protective sunglasses for bright days.",
"vendor": "Sunny Eyewear",
"url": "https://example.com/sunglasses"
}
}
],
"pageInfo": {
"endCursor": "abcd1234",
"hasNextPage": true
}
}
}
}
}
Was this page helpful?