Some refactoring. dev script, graphql dir.

This commit is contained in:
2022-09-08 19:21:20 +02:00
parent 1bcf265aec
commit 31e7aec64d
5 changed files with 40 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
import { GraphQLDefinitionsFactory } from '@nestjs/graphql';
import { join } from 'path';
const definitionFactory = new GraphQLDefinitionsFactory();
definitionFactory.generate({
typePaths: ['./**/*.graphql'],
path: join(process.cwd(), 'src/graphql/graphql.typings.ts'),
outputAs: 'class',
watch: true,
});