0.0.9 • Published 2 years ago

@l1go/api-graphql v0.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

修改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"],
})