mercurius 基于fastify 的graphql server 以及gateway 服务

mercurius 是fastify 框架作者开发的graphql 框架

支持的特性

  • cache 查询以及校验
  • 通过自动加载解决n+1问题(后边研究下)
  • 基于graphql-jit 解决即使编译问题
  • 订阅支持
  • 支持联邦(很不错的特性)
  • 联邦订阅支持
  • 支持gateway 模式
  • 支持批量查询
  • 自定义持久化查询

说明

mercurius 实际上就是一个fastify 的plugin, 支持的特性很对,值得试用下

参考资料

https://github.com/mercurius-js/mercurius
https://mercurius.dev/
http://npm.im/graphql-jit
https://github.com/MichalLytek/type-graphql

原文地址:https://www.cnblogs.com/rongfengliang/p/15171908.html