1. 首页
  2. 数据库
  3. 其它
  4. graphql query complexity:graphql js的GraphQL查询复杂度分析和验证 源码

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

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