修改config.ts
config.graphql = {
// 是否加载开发者工具 graphiql, 默认开启。路由同 router 字段。使用浏览器打开该可见。
graphiql: true,
// graphql 是否忽略passport
ignorePassport: true,
// graphql 搜索深度
graphQLMaxDepth: 3,
// 前置处理函数
rootResolveFunction (root, args, ctx, info) {}, // global, args, context, info
serviceUris: []
}
修改configuration.ts
import * as apiGraphQL from '@l1go/api-graphql'
@Configuration({
imports: [
apiGraphQL
],
importConfigs: ["./config"],
})