nestjs-type-graphql:nestjs-type-graphql

时间:2021-05-11 10:48:30
【文件属性】:
文件名称:nestjs-type-graphql:nestjs-type-graphql
文件大小:33KB
文件格式:ZIP
更新时间:2021-05-11 10:48:30
graphql typescript nestjs apollo-server-express type-graphql 带有类型-graphql的Nestjs Nest-js中type-graphql的基本集成。 如何 //main.ts async function bootstrap ( ) { const app = await NestFactory . create ( AppModule , { bodyParser : true , cors : true , } ) ; const gqlW = app . get ( GraphQlBridge ) ; gqlW . setContainer ( app ) ; await app . listen ( 3000 ) ; } // app.module.ts @ Module ( { imports : [ TypeOrmModule . forRoot ( ) , TypeGQLM
【文件预览】:
nestjs-type-graphql-master
----.gitignore(131B)
----package.json(996B)
----tslint.json(898B)
----package-lock.json(110KB)
----dist()
--------graphql-bridge.service.d.ts(329B)
--------graphql-bridge.service.js(2KB)
--------index.js(395B)
--------typegraphql.module.d.ts(205B)
--------typegraphql.module.js(1KB)
--------index.d.ts(128B)
----index.js(167B)
----tsconfig.json(485B)
----README.md(1KB)
----index.ts(24B)
----lib()
--------graphql-bridge.service.ts(505B)
--------index.ts(128B)
--------typegraphql.module.ts(674B)
----.npmignore(77B)
----.prettierrc(51B)
----index.d.ts(24B)

网友评论