Skip to main content
Query

spaceSearch

Searches a space and every project in it that the caller can access. Requires membership of the space. Results are ranked by relevance and paged with first and after.

Arguments

  • afterString

    Cursor from pageInfo.endCursor of the previous page. Omit for the first page.

  • firstInt

    Maximum number of results to return, from 1 to 50. Defaults to 20.

  • queryString!

    Text to search for.

  • spaceIdID!

    ID of the space to search.

  • Only return results of these kinds. Omit for all kinds.

Returns

SearchResultConnection!

Example

query SpaceSearch($after: String, $first: Int, $query: String!, $spaceId: ID!, $types: [SearchDocKind!]) {
  spaceSearch(
    after: $after
    first: $first
    query: $query
    spaceId: $spaceId
    types: $types
  ) {
    totalCount
  }
}