collectionItems Query
Description
Retrieves a collection with paginated items.
query collectionItems(
$id: Int!
$pagination: PaginationInput!
$randomise: Boolean!
) {
collectionItems(id: $id, pagination: $pagination, randomise: $randomise) {
collection {
_id
id
title
handle
viewType
path
}
items {
_id
id
created
wanted
path
uri
type
isForbiddenForSale
handle
bitly
}
pagination {
limit
count
page
pages
sort
order
hasMore
}
}
}
Variables
{
"id": 4436698844272,
"pagination": {
"limit": 20,
"page": 1,
"sort": "sort",
"order": 42
},
"randomise": true
}
Response
{
"collectionItems": {
"collection": {
"_id": "9eebac4d34b32b9d18585113",
"id": 7905670290988,
"title": "example",
"handle": "example",
"viewType": "example",
"path": "/release/1763553751/release-artist-release-name"
},
"items": [
{
"_id": "0059c1cfa446ede6d3001502",
"id": 1.23,
"created": 1751533783976,
"wanted": true,
"path": "/release/1763553751/release-artist-release-name",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"type": "example",
"isForbiddenForSale": true,
"handle": "example",
"bitly": "example"
}
],
"pagination": {
"limit": 20,
"count": 10,
"page": 1,
"pages": 1,
"sort": "example",
"order": 42,
"hasMore": true
}
}
}
Arguments
| Name | Type | Description |
|---|---|---|
id | Int! | Numeric identifier for the collection. |
pagination | PaginationInput! | Pagination and sorting parameters. |
randomise | Boolean! | Whether to randomize the item order. |