三亩地 三亩地SAN MU DI · CODE DIARY
ARTICLE DETAIL

日记详情

真实记录编程学习的某一天,欢迎挑你感兴趣的翻一翻。

Graphpack Performance Monitor Plugin

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),仅供参考

← 返回列表