Fetch a specific Collection by one of its unique attributes.


The handle of the Collection.

The ID of the Collection.


Was this section helpful?

Anchor to Collection
Collection
Access requirements

A collection represents a grouping of products that a shop owner can create to organize them or make their shops easier to browse.


Was this section helpful?

Examples

Hide code
DescriptionCopy
query getCollectionById($id: ID!) {
collection(id: $id) {
title
}
}
Hide code
Response
JSON
{
"collection": {
"title": "FrontPage"
}
}