Skip to main content

item Query

Description

Retrieves a single item by numeric ID or database reference.

query item($id: Float, $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": 30.7,
"itemRef": "520fa726ec263447bd9bed00"
}

Response

{
"item": {
"_id": "c337949f68b087593fa8db50",
"id": 1.23,
"created": 1736270247393,
"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": 1706566471156,
"subtitle": "example",
"authors": [
"example"
],
"publisher": "example",
"publishedDate": 1714848869097,
"pageCount": 42,
"categories": [
"example"
],
"maturityRating": "example",
"language": "example",
"format": "example"
},
"handle": "example",
"bitly": "example",
"descriptions": {
"main": "example"
},
"listings": [
{
"_id": "da1ef39d5b2778449992a450",
"id": 1.23,
"available": 1718597514675,
"preOrder": true,
"secondHand": true,
"categories": [
"example"
],
"onePerCustomer": true,
"comments": "example"
}
]
}
}

Arguments

NameTypeDescription
idFloatNumeric identifier for the item.
itemRefIDInternal database reference for the item.

Returns

Item