Some refactoring. dev script, graphql dir.
This commit is contained in:
11
backend/graphql/generate.typings.ts
Normal file
11
backend/graphql/generate.typings.ts
Normal 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,
|
||||
});
|
||||
Reference in New Issue
Block a user