Skip to content

Commit

Permalink
refactor: remove deep imports
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Nov 4, 2019
1 parent dfe6e54 commit 20f15d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/stitching/introspectSchema.ts
@@ -1,6 +1,9 @@
import { GraphQLSchema, DocumentNode } from 'graphql';
import { buildClientSchema, parse } from 'graphql';
import { getIntrospectionQuery } from 'graphql/utilities';
import {
buildClientSchema,
parse,
getIntrospectionQuery,
} from 'graphql';
import { ApolloLink } from 'apollo-link';
import { Fetcher } from '../Interfaces';
import linkToFetcher from './linkToFetcher';
Expand Down
3 changes: 1 addition & 2 deletions src/stitching/makeRemoteExecutableSchema.ts
Expand Up @@ -17,7 +17,6 @@ import { addTypenameToAbstract } from './addTypenameToAbstract';
import { checkResultAndHandleErrors } from './checkResultAndHandleErrors';
import { observableToAsyncIterable } from './observableToAsyncIterable';
import mapAsyncIterator from './mapAsyncIterator';
import { Options as PrintSchemaOptions } from 'graphql/utilities/schemaPrinter';
import { cloneSchema } from '../utils';
import { stripResolvers, generateProxyingResolvers } from './resolvers';
import { addResolveFunctionsToSchema } from '../generate';
Expand All @@ -42,7 +41,7 @@ export default function makeRemoteExecutableSchema({
fetcher?: Fetcher;
createResolver?: (fetcher: Fetcher) => GraphQLFieldResolver<any, any>;
buildSchemaOptions?: BuildSchemaOptions;
printSchemaOptions?: PrintSchemaOptions;
printSchemaOptions?: { commentDescriptions?: boolean };
}): GraphQLSchema {
if (!fetcher && link) {
fetcher = linkToFetcher(link);
Expand Down

0 comments on commit 20f15d3

Please sign in to comment.