SEARCH_USERS: DocumentNode = ...

Query to search for users as typing

Returns basic user information for search results:

  • Login (username)
  • Display name
  • Avatar URL

Query Parameters:

  • Search query string
  • Limited to 5 results for performance
  • Only returns USER type results
const { data } = useQuery(SEARCH_USERS, {
variables: { query: "octo" }
});