From 7338cf48d030c89e9bb872b690d28931f8b1c96c Mon Sep 17 00:00:00 2001 From: rakeshjosh2003 <102702631+rakeshjosh2003@users.noreply.github.com> Date: Wed, 19 Feb 2025 13:07:31 +1100 Subject: [PATCH] Update regarding exhaustive search via graphql.mdx --- docs/api/graphql/search.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/api/graphql/search.mdx b/docs/api/graphql/search.mdx index 872713358..e97222832 100644 --- a/docs/api/graphql/search.mdx +++ b/docs/api/graphql/search.mdx @@ -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.