GraphQL Depth Limit MaxQueryDepthInstrumentation is there a way to expose this class as directive or annotation? #245
-
|
https://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/analysis/MaxQueryDepthInstrumentation.java I find many projects in javascript to deal with query cost analysis, amount limit, depth limit |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You can add an instrumentation class that extends the MaxQueryDepthInstrumentation class: https://netflix.github.io/dgs/advanced/instrumentation/ This will allow you to limit the query depth. Hope that helps. |
Beta Was this translation helpful? Give feedback.
You can add an instrumentation class that extends the MaxQueryDepthInstrumentation class: https://netflix.github.io/dgs/advanced/instrumentation/
This will allow you to limit the query depth.
Hope that helps.