Skip to main content

item Query

Description​

Retrieves a single item by numeric ID or database reference.

query item($id: ID, $itemRef: ID) {
item(id: $id, itemRef: $itemRef) {
_id
id
created
wanted
path
seo {
index
description
slug
title
}
uri
type
isForbiddenForSale
data {
title
cat
type
manufacturer
discogsId
assetLink
weight
genres
styles
country
releaseDate
subtitle
authors
publisher
publishedDate
pageCount
categories
maturityRating
language
format
}
handle
bitly
descriptions {
main
}
listings {
_id
id
available
preOrder
secondHand
categories
onePerCustomer
comments
}
}
}

Variables​

{
"id": "25d9671a29b9c69f1e46c17b",
"itemRef": "a971d86ffab87d511a30e01a"
}

Response​

{
"item": {
"_id": "52f92e6fc841b520180b5057",
"id": "example",
"created": 1762680058831,
"wanted": true,
"path": "/release/1763553751/release-artist-release-name",
"seo": {
"index": true,
"description": "example",
"slug": "example",
"title": "example"
},
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"type": "example",
"isForbiddenForSale": true,
"data": {
"title": "example",
"cat": "example",
"type": "example",
"manufacturer": "example",
"discogsId": 987654321,
"assetLink": "example",
"weight": 1.23,
"genres": [
"example"
],
"styles": [
"example"
],
"country": "example",
"releaseDate": 1734229282322,
"subtitle": "example",
"authors": [
"example"
],
"publisher": "example",
"publishedDate": 1756312972301,
"pageCount": 42,
"categories": [
"example"
],
"maturityRating": "example",
"language": "example",
"format": "example"
},
"handle": "example",
"bitly": "example",
"descriptions": {
"main": "example"
},
"listings": [
{
"_id": "f2b9b7c74e5ba9896e579396",
"id": "example",
"available": 1745719342212,
"preOrder": true,
"secondHand": true,
"categories": [
"example"
],
"onePerCustomer": true,
"comments": "example"
}
]
}
}

Arguments​

NameTypeDescription
idIDIdentifier for the item. Accepts legacy numeric values.
itemRefIDInternal database reference for the item.

Returns​

Item