---
title: graphSearchFast query | Wartiva GraphQL API
description: Searches the graph and waits for the search to finish, returning up to first results in one response. Wartiva GraphQL API reference with examples.
url: https://wartiva.com/api-docs/queries/graph-search-fast.html
updated: 2026-10-07
---

Graph search · GraphQL query

# `graphSearchFast` query

Searches the graph and waits for the search to finish, returning up to `first` results in one response — the synchronous form of [graphSearch](https://wartiva.com/api-docs/queries/graph-search.html) plus [graphSearchResults](https://wartiva.com/api-docs/queries/graph-search-results.html), for clients that cannot poll a search job.

The request is held open while the search runs, so use it for small, bounded result sets. A search that has not finished within the server's wait limit returns an error naming its job id; the search keeps running and its results can still be read with [graphSearchResults](https://wartiva.com/api-docs/queries/graph-search-results.html). A search that fails, is cancelled, or expires returns an error rather than the rows it produced before stopping — read the job with [graphSearchJob](https://wartiva.com/api-docs/queries/graph-search-job.html) for its recorded errors.

## Response

Returns a [`GraphSearchFastPayload!`](https://wartiva.com/api-docs/types/graph-search-fast-payload.html)

## Arguments

| Name | Description |
|---|---|
| `input` - [`GraphSearchFastInput!`](https://wartiva.com/api-docs/types/graph-search-fast-input.html) | The graph search input parameters. |

## Example

### Query

```graphql
query graphSearchFast($input: GraphSearchFastInput!) {
  graphSearchFast(input: $input) {
    nodes {
      path {
        ...GraphSearchResultsPathSegmentFragment
      }
    }
    searchJob {
      id
      orgId
      requestedInput {
        ...GraphSearchInputPayloadFragment
      }
      effectiveInput {
        ...GraphSearchInputPayloadFragment
      }
      hash
      user {
        ...UserFragment
      }
      state
      errors
      resultsCount
      hasResults
      startedAt
      endedAt
      running
      duration
      updatedAt
      accessedAt
      winningTrace {
        ...SearchTraceStageFragment
      }
      unselectedTraces {
        ...SearchTraceStageFragment
      }
    }
  }
}

```

### Variables

```json
{"input": GraphSearchFastInput}

```

### Response

```json
{
  "data": {
    "graphSearchFast": {
      "nodes": [GraphSearchResultsPath],
      "searchJob": GraphSearchJob
    }
  }
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
