@morojs/moro / createDepthLimitPlugin
Function: createDepthLimitPlugin()
createDepthLimitPlugin(
options):any
Defined in: src/core/middleware/built-in/graphql/helpers.ts:150
GraphQL depth limit validator Prevents deeply nested queries
Note: This is a basic implementation. For production use, consider installing graphql-depth-limit package for full features.
Parameters
options
callback?
(depth) => void
maxDepth
number
Returns
any