Queries for Search Results

searchResult

Returns the results of a search.

searchResult(query) {
  /* SearchResult fields */
}

Arguments

query String! required

The query string to search for across assets, collections, listings, games, and wallets.

Response

SearchResult.* SearchResult

Any 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": []
    }
  }
}