Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Commit

Permalink
Fix namespaces module
Browse files Browse the repository at this point in the history
  • Loading branch information
igorlesnenko authored and Yogu committed Aug 17, 2019
1 parent e3e0d6e commit fdc9d4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pipeline/namespaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { PipelineModule } from './pipeline-module';
import {
DocumentNode, FragmentDefinitionNode, GraphQLObjectType, GraphQLSchema, SelectionSetNode, visit
} from 'graphql';
import { maybeDo } from '../utils/utils';
import { maybeDo, objectValues } from '../utils/utils';
import { Query } from '../graphql/common';

/**
Expand All @@ -22,7 +22,8 @@ export class NamespaceModule implements PipelineModule {
directives: Array.from(schema.getDirectives()),
query: maybeDo(schema.getQueryType(), type => this.wrap(type, 'Query')),
mutation: maybeDo(schema.getMutationType(), type => this.wrap(type, 'Mutation')),
subscription: maybeDo(schema.getSubscriptionType(), type => this.wrap(type, 'Subscription'))
subscription: maybeDo(schema.getSubscriptionType(), type => this.wrap(type, 'Subscription')),
types: objectValues(schema.getTypeMap())
});
this.schema = newSchema;
return newSchema;
Expand Down

0 comments on commit fdc9d4e

Please sign in to comment.