@l1go/api-graphql
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @l1go/api-graphql

Weekly Downloads

1

Version

0.0.9

License

MIT

Unpacked Size

26.8 kB

Total Files

18

Last publish

Collaborators

  • roy2an