Skip to main content

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": 9682625607735
}

Response

{
"collection": {
"_id": "36938647a96ca60cac803ed1",
"created": 1749512945980,
"createdBy": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "be1d3cc0197a01980b19e299"
},
"id": 6123578070105,
"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": "9716cca3f9cb7c683f2bf015",
"title": "example"
}
]
}
}

Arguments

NameTypeDescription
idInt!Unique identifier of the collection (required)

Returns

Collection