Searches the graph and waits for the search to finish, returning up to first results in one response — the synchronous form of graphSearch plus graphSearchResults, 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. A search that fails, is cancelled, or expires returns an error rather than the rows it produced before stopping — read the job with graphSearchJob for its recorded errors.
Response
Returns a GraphSearchFastPayload!
Arguments
| Name | Description |
|---|---|
input - GraphSearchFastInput!
|
The graph search input parameters. |
Example
Query
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
{"input": GraphSearchFastInput}
Response
{
"data": {
"graphSearchFast": {
"nodes": [GraphSearchResultsPath],
"searchJob": GraphSearchJob
}
}
}