Skip to content

Commit 1103829

Browse files
Update graphql search doc.mdx (#989)
<!-- 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.
1 parent 8599fe2 commit 1103829

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/api/graphql/search.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ src search -json 'repo:pallets/flask error'
2020
```
2121

2222
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.
23+
24+
## Incomplete search results when using Graphql
25+
26+
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 commit comments

Comments
 (0)