sourcegraph/doc/api/graphql
Vincent 1c1e795c27
Improve GQL ratelimits (#58563)
This will allow us to tweak our GraphQL rate limiting in more detail for overly large queries. We've added more restrictions for duplicate and unique field count. In addition to these restrictions we now calculate the query cost before validating the query against the schema. The validation is quit heavy and could still lead to resource exhaustion.

See https://github.com/sourcegraph/security-issues/issues/375 for more context.

Changes: 
- Calculates QueryCost before validating the schema
- Extended QueryCost struct with new metrics
- Updated fragment cost tracking
- Added tracking of duplicate/unique fields
- Updated tests

## Test plan
CI tests, local tests.
2023-12-27 14:04:54 +01:00
..
api-docs.md webhooks: create new namespace for incoming + outgoing (#49570) 2023-03-17 16:52:18 -07:00
examples.md graphql: examples: fix search GraphQL query (prior one was severely incomplete..) 2021-06-11 10:36:41 -07:00
index.md Improve GQL ratelimits (#58563) 2023-12-27 14:04:54 +01:00
managing-code-insights-with-api.md insights: update api docs (#43436) 2022-10-27 10:21:53 -04:00
managing-search-contexts-with-api.md demote Sourcegraph.com docs, Sourcegraph Cloud refers to managed instances (#39689) 2022-07-29 15:49:40 +00:00
search.md Add search pagination limitations and recommendation (#53479) 2023-06-14 15:32:37 +01:00