graphql: limit query depth and complexity
Depth 3 counts every field including leaves and expands fragments in place, so the Skill.profile cycle cannot be walked twice. Complexity budget 100 with weight 10 on list fields blocks alias floods at validation time.
This commit is contained in:
1 parent
c824a7675b
commit
b0da59fbf4
5 files changed
+122
-4
No files matched your search
@@ -35,6 +35,7 @@
|
||||
"dataloader": "^2.2.3",
|
||||
"dotenv": "^18.0.10",
|
||||
"graphql": "^17.1.0",
|
||||
"graphql-query-complexity": "^2.0.0",
|
||||
"pg": "^8.23.1",
|
||||
"reflect-metadata": "^0.2.2",
|
||||
"rxjs": "^7.8.1",
|
||||
|
||||
Reference in new issue
Block a user