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": 2391205036756
}
Response
{
"collection": {
"_id": "7bc61558a1219d9924abb6c8",
"created": 1753730253001,
"createdBy": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "d1c5046ef7022a1117b71b62"
},
"id": 7127870715214,
"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": "f6db066d7c51c1a9968cd402",
"title": "example"
}
]
}
}
Arguments
| Name | Type | Description |
|---|---|---|
id | Int! | Unique identifier of the collection (required) |