How to use the @nestjs/graphql.GraphQLDefinitionsFactory function in @nestjs/graphql

To help you get started, we’ve selected a few @nestjs/graphql examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jmcdo29 / testing-nestjs / apps / typeorm-graphql-sample / src / graphql / generate-typings.ts View on Github external
import { GraphQLDefinitionsFactory } from '@nestjs/graphql';
import { join } from 'path';

const definitionsFactory = new GraphQLDefinitionsFactory();

// tslint:disable-next-line: no-floating-promises
definitionsFactory.generate({
  typePaths: ['./src/**/*.graphql'],
  path: join(process.cwd(), 'src/graphql/protocol.schema.ts'),
  outputAs: 'class',
});
github scalio / bazel-nx-example / libs / api-interface / src / lib / generate-typings.ts View on Github external
import { GraphQLDefinitionsFactory } from '@nestjs/graphql';
import { join } from 'path';

const definitionsFactory = new GraphQLDefinitionsFactory();
definitionsFactory.generate({
  typePaths: ['./**/*.graphql'],
  path: join(process.cwd(), 'src/graphql.schema.ts'),
  outputAs: 'class',
});
github notadd / notadd / apps / nest-upms / src / graphql / generate-typings.ts View on Github external
import { GraphQLDefinitionsFactory } from '@nestjs/graphql';
import { join } from 'path';

const definitionsFactory = new GraphQLDefinitionsFactory();
definitionsFactory.generate({
    typePaths: [join(__dirname, '**/*.graphql')],
    path: join(__dirname, 'src/graphql.schema.ts'),
    outputAs: 'class',
});
github scalio / bazel-nx-example / libs / api-interface / src / lib / generate-typings.js View on Github external
"use strict";
exports.__esModule = true;
var graphql_1 = require("@nestjs/graphql");
var path_1 = require("path");
var definitionsFactory = new graphql_1.GraphQLDefinitionsFactory();
definitionsFactory.generate({
    typePaths: ['./src/**/*.graphql'],
    path: path_1.join(process.cwd(), 'src/graphql.schema.ts'),
    outputAs: 'class'
});
github chnirt / nestjs-graphql-best-practice / src / generator / generate-typings.ts View on Github external
import { GraphQLDefinitionsFactory } from '@nestjs/graphql'
import { join } from 'path'

const definitionsFactory = new GraphQLDefinitionsFactory()
definitionsFactory.generate({
	typePaths: ['./src/**/*.graphql'],
	path: join(process.cwd(), 'src/generator/graphql.schema.ts'),
	outputAs: 'class',
	debug: true
})
github vip-git / react-ssr-advanced-seed / src / server / app / generate-typings.ts View on Github external
import { GraphQLDefinitionsFactory } from '@nestjs/graphql';
import { join } from 'path';

const definitionsFactory = new GraphQLDefinitionsFactory();
definitionsFactory.generate({
  typePaths: ['./modules/**/*.graphql'],
  path: join(process.cwd(), './graphql.schema.ts'),
  outputAs: 'class',
});
github fivethree-team / nestjs-prisma-starter / src / generate-typings.ts View on Github external
import { GraphQLDefinitionsFactory } from '@nestjs/graphql';
import { join } from 'path';

const definitionsFactory = new GraphQLDefinitionsFactory();
definitionsFactory.generate({
  typePaths: ['./src/**/*.graphql'],
  path: join(process.cwd(), 'src/generated/graphql.ts'),
  outputAs: 'class',
});