Skip to content

Commit

Permalink
refactor(): use @graphql-tools monorepo instead of graphql-tools package
Browse files Browse the repository at this point in the history
Replace imports of "graphql-tools" package to import from individual packages of @graphql-tools monorepo
  • Loading branch information
Namielusi committed Aug 20, 2020
1 parent e7a9d42 commit 703daf9
Show file tree
Hide file tree
Showing 5 changed files with 377 additions and 2,898 deletions.
2 changes: 1 addition & 1 deletion lib/federation/graphql-federation.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
isScalarType,
isUnionType,
} from 'graphql';
import { mergeSchemas } from 'graphql-tools';
import { mergeSchemas } from '@graphql-tools/merge';
import { forEach, isEmpty } from 'lodash';
import { GraphQLSchemaBuilder } from '../graphql-schema.builder';
import { GqlModuleOptions } from '../interfaces';
Expand Down
2 changes: 1 addition & 1 deletion lib/graphql-definitions.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { isEmpty } from '@nestjs/common/utils/shared.utils';
import { gql } from 'apollo-server-core';
import * as chokidar from 'chokidar';
import { printSchema } from 'graphql';
import { makeExecutableSchema } from 'graphql-tools';
import { makeExecutableSchema } from '@graphql-tools/schema';
import {
DefinitionsGeneratorOptions,
GraphQLAstExplorer,
Expand Down
8 changes: 3 additions & 5 deletions lib/graphql.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ import {
lexicographicSortSchema,
printSchema,
} from 'graphql';
import {
makeExecutableSchema,
mergeSchemas,
SchemaDirectiveVisitor,
} from 'graphql-tools';
import { mergeSchemas } from '@graphql-tools/merge';
import { makeExecutableSchema } from '@graphql-tools/schema';
import { SchemaDirectiveVisitor } from '@graphql-tools/utils';
import { forEach, isEmpty } from 'lodash';
import {
DefinitionsGeneratorOptions,
Expand Down

0 comments on commit 703daf9

Please sign in to comment.