11 lines
294 B
TypeScript
11 lines
294 B
TypeScript
import { GraphQLDefinitionsFactory } from '@nestjs/graphql'
|
|
import { join } from 'path'
|
|
|
|
const definitionsFactory = new GraphQLDefinitionsFactory()
|
|
definitionsFactory.generate({
|
|
typePaths: ['./*.gql'],
|
|
path: join(process.cwd(), 'types/graphql.d.ts'),
|
|
outputAs: 'class',
|
|
watch: true,
|
|
})
|