schematic-nest-server-gamechanger
v1.0.60
Published
Schematic to generate graphql API based on nest and TypeORM
Downloads
276
Keywords
Readme
This schematic allows you to generate graphql API based on NestJS and TypeORM
Testing
To test locally, install @angular-devkit/schematics-cli globally and use the schematics command line tool. That tool acts the same as the generate command of the Angular CLI, but also has a debug mode.
Check the documentation with
schematics --helpPublishing
To publish, simply do:
npm run build
npm publishThat's it!
Running
To use the generator, start of by installing the npm package in a repository which contains your graphql schema:
npm install schematic-nest-server-gamechanger@latestThen use the following to generate projet
To run generator, add your the current repository and run the following the graphql schema:
schematics schematic-nest-server-gamechanger/:generate --dry-run=falseYou will then need to enter the name of the project you want to generate and the name and extension of the schema file as so :
nest-graphql-server
employees.graphql
