graphql query complexity:graphql js的GraphQL查询复杂度分析和验证 源码

上传:audio70940 浏览: 28 推荐: 0 文件:ZIP 大小:42.26KB 上传时间:2021-02-22 01:20:14 版权申诉
graphql-js的GraphQL查询复杂度分析 该库提供GraphQL查询分析,以拒绝对GraphQL服务器的复杂查询。 这可以用来保护您的GraphQL服务器免受资源耗尽和DoS攻击。 与参考实现一起使用。 安装 通过npm安装软件包 npm install -S graphql-query-complexity 用法 创建具有最大查询复杂度的规则: import queryComplexity , { simpleEstimator } from 'graphql-query-complexity' ; const rule = queryComplexity ( { /
上传资源
用户评论