image:
Image
Image associated with the collection.
metafield:
Metafield
A [custom field](https://shopify.dev/docs/apps/build/custom-data), including its `namespace` and `key`, that's associated with a Shopify resource for the purposes of adding and storing additional information.
metafields:
Metafield!
A list of [custom fields](/docs/apps/build/custom-data) that a merchant associates with a Shopify resource.
onlineStoreUrl:
URL
The URL used for viewing the resource on the shop's Online Store. Returns `null` if the resource is currently not published to the Online Store sales channel.
title:
String!
The collection’s name. Limit of 255 characters.
trackingParameters:
String
URL parameters to be added to a page URL to track the origin of on-site search traffic for [analytics reporting](https://help.shopify.com/manual/reports-and-analytics/shopify-reports/report-types/default-reports/behaviour-reports). Returns a result when accessed through the [search](https://shopify.dev/docs/api/storefront/current/queries/search) or [predictiveSearch](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch) queries, otherwise returns null.
updatedAt:
DateTime!
The date and time when the collection was last modified.
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
9
1
2
3
4
5
›
⌄
⌄
querygetCollectionById($id: ID!){
collection(id: $id){
title
}
}
Hide code
Response
JSON
9
1
2
3
4
5
›
⌄
⌄
{
"collection": {
"title": "FrontPage"
}
}
.dev Assistant
Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.