Skip to content

Commit

Permalink
Update graphql search doc.mdx (#989)
Browse files Browse the repository at this point in the history
<!-- Explain the changes introduced in your PR -->

## Pull Request approval

You will need to get your PR approved by at least one member of the
Sourcegraph team. For reviews of docs formatting, styles, and component
usage, please tag the docs team via the #docs Slack channel.
  • Loading branch information
rakeshjosh2003 authored Feb 19, 2025
1 parent 8599fe2 commit 1103829
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 1103829

Please sign in to comment.