collection Query
Description
Fetches a single collection by its unique integer identifier.
query collection($id: Int!) {
collection(id: $id) {
_id
created
createdBy {
type
name
email
ref
}
id
title
description {
content
}
handle
sort {
key
order
}
viewType
seo {
index
description
slug
title
}
path
banner {
format
}
segments {
_id
title
}
}
}
Variables
{
"id": 8201334742221
}
Response
{
"collection": {
"_id": "d15acc1ef968ceeb919c05f9",
"created": 1740772444497,
"createdBy": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "97411088b6459e45e2f32416"
},
"id": 8012380070534,
"title": "example",
"description": {
"content": "example"
},
"handle": "example",
"sort": {
"key": "example",
"order": -1
},
"viewType": "example",
"seo": {
"index": true,
"description": "example",
"slug": "example",
"title": "example"
},
"path": "/release/1763553751/release-artist-release-name",
"banner": {
"format": "example"
},
"segments": [
{
"_id": "1b81871d9abe96ad436c5118",
"title": "example"
}
]
}
}
Arguments
| Name | Type | Description |
|---|---|---|
id | Int! | Unique identifier of the collection (required) |