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": "493bd46116ee53f137edfa86",
"id": 1.23,
"created": 1711831541440,
"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
| Name | Type | Description |
|---|---|---|
term | String! | Search query term. |
stocked | Boolean | Whether to only return items that are in stock. |