Skip to main content

search Query

Description

Searches for items matching the search term.

query search($term: String!, $stocked: Boolean) {
search(term: $term, stocked: $stocked) {
items {
_id
id
created
wanted
path
uri
type
isForbiddenForSale
handle
bitly
}
}
}

Variables

{
"term": "term",
"stocked": true
}

Response

{
"search": {
"items": [
{
"_id": "bace292ceb72aa58c1fa0c65",
"id": 1.23,
"created": 1764771800120,
"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"
}
]
}
}

Arguments

NameTypeDescription
termString!Search query term.
stockedBooleanWhether to only return items that are in stock.

Returns

SearchResponse