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:
arswarog committed 2026-11-18 13:06:55 +03:00
1 parent c824a7675b
commit b0da59fbf4
5 files changed
+122 -4

No files matched your search

+1
View File
@@ -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",