Skip to content

Commit

Permalink
Update regarding exhaustive search via graphql.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshjosh2003 authored Feb 19, 2025
1 parent fb70e21 commit 7338cf4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/api/graphql/search.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ src search -json 'repo:pallets/flask error'
```

You can then consume the JSON output directly, add `--get-curl` to get a `curl` execution line, and more. See [the `src` CLI tool](https://sourcegraph.com/github.com/sourcegraph/src-cli) for more details.

## Incomplete search results when using Graphql

Sometimes, users find discrepancies in the number of results returned on UI compared to Graphql for the same query. This can be avoided by adding ```"count:all" ``` to the query used in Graphql. This ensures all the matching records are being fetched via Graphql.

0 comments on commit 7338cf4

Please sign in to comment.