mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
10 lines
297 B
TypeScript
10 lines
297 B
TypeScript
import { GraphQLDefinitionsFactory } from '@nestjs/graphql';
|
|
import { join } from 'path';
|
|
|
|
const definitionsFactory = new GraphQLDefinitionsFactory();
|
|
definitionsFactory.generate({
|
|
typePaths: ['./src/**/*.graphql'],
|
|
path: join(process.cwd(), 'src/graphql.schema.ts'),
|
|
outputAs: 'class',
|
|
});
|