Skip to content
Open
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
13 changes: 13 additions & 0 deletions proposals/ResourceLimits.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
question: "How do I prevent a query from consuming too many resources?"
draft: true
---

A generalization of [ProtectionFromDeepNestedQueriesAttacks](https://github.com/graphql/faq/blob/master/proposals/ProtectionFromDeepNestedQueriesAttacks.md).
Answer is something along the lines:
* Use persisted operations if you can get away with it
* Query complexity limits
* Query depth limits
* Input document size limits
* Input variable size limits
* Timeouts as a last resort