Graphpack Performance Monitor Plugin
Graphpack Performance Monitor Plugin
【免费下载链接】graphpack☄️ A minimalistic zero-config GraphQL server.项目地址: https://gitcode.com/gh_mirrors/gr/graphpack
监控GraphQL查询性能,自动检测慢查询。
安装
npm install graphpack-performance-monitor使用
// graphpack.config.js const PerformanceMonitorPlugin = require('graphpack-performance-monitor'); module.exports = { server: { plugins: [ new PerformanceMonitorPlugin({ threshold: 100 // 毫秒 }) ] } };配置选项
threshold: 慢查询阈值(默认:100ms)
【免费下载链接】graphpack☄️ A minimalistic zero-config GraphQL server.项目地址: https://gitcode.com/gh_mirrors/gr/graphpack
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
