Egg GraphQL 插件。
$ npm i egg-plugin-graphql --save// config/plugin.jsexports.graphql={enable: true,package: 'egg-plugin-graphql',};// config.default.js// 配置 graphqlexports.graphql={router: '/graphql',// 是否创建默认的空 schemadefaultEmptySchema: false,// 是否加载开发者工具 (playground), 默认开启, 路由同 router 字段, 使用浏览器打开该可见playground: true,};// 使用 graphql 插件,拦截请求exports.middleware=['graphql'];- example/simple 一个简单的例子
- example/modular-schema 模块化 schema
请到 issues 异步交流。