Queries for Search Results
searchResult
Returns the results of a search.
searchResult(query) {
/* SearchResult fields */
}
Arguments
query
String! required
query
String! requiredThe query string to search for across assets, collections, listings, games, and wallets.
Response
SearchResult.*
SearchResult
SearchResult.*
SearchResultAny requested field from the SearchResult object.
Example
Request
query {
searchResult(query: "Dec") {
query
assets {
id
name
}
collections {
id
name
}
games {
id
name
}
listings {
id
asset {
name
}
}
wallets {
id
address
}
}
}
Response
{
"data": {
"searchResult": {
"query": "Dec",
"assets": [],
"collections": [
{
"id": 1,
"name": "Land"
}
],
"games": [
{
"id": 1,
"name": "Decentraland"
}
],
"listings": [],
"wallets": []
}
}
}