12 lines
316 B
TypeScript
12 lines
316 B
TypeScript
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,
|
|
});
|