Skip to content

Commit

Permalink
fix(federation): allow apollo engine config in gateway
Browse files Browse the repository at this point in the history
Replaced the Pick with it's inversion which allows more Apollo Server
options to pass through.
  • Loading branch information
Rick Dutour Geerling committed Jan 20, 2020
1 parent 77ae270 commit bc4be48
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions lib/interfaces/gql-gateway-module-options.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,22 @@ import { ModuleMetadata } from '@nestjs/common/interfaces';

export interface GatewayModuleOptions {
gateway?: GatewayConfig;
server?: Pick<
server?: Omit<
GqlModuleOptions,
| 'path'
| 'disableHealthCheck'
| 'onHealthCheck'
| 'cors'
| 'bodyParserConfig'
| 'installSubscriptionHandlers'
| 'typeDefs'
| 'typePaths'
| 'include'
| 'resolvers'
| 'resolverValidationOptions'
| 'directiveResolvers'
| 'autoSchemaFile'
| 'transformSchema'
| 'definitions'
| 'schema'
| 'subscriptions'
| 'schemaDirectives'
| 'buildSchemaOptions'
| 'fieldResolverEnhancers'
>;
}

Expand Down

0 comments on commit bc4be48

Please sign in to comment.