Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update graphql search doc.mdx #989

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.