Skip to content

Commit

Permalink
build: update apollo federation and gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxmachine authored and Rick Dutour Geerling committed Jan 20, 2020
1 parent c85b139 commit aecc008
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 121 deletions.
6 changes: 5 additions & 1 deletion lib/interfaces/gql-gateway-module-options.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Omit, GqlModuleOptions } from './gql-module-options.interface';
import { GatewayConfig, ServiceEndpointDefinition } from '@apollo/gateway';
import { GraphQLDataSource } from '@apollo/gateway/src/datasources/types';
import { ModuleMetadata } from '@nestjs/common/interfaces';
import { HeaderInit } from 'node-fetch';

export interface GatewayModuleOptions
extends Pick<
Expand All @@ -14,7 +15,10 @@ export interface GatewayModuleOptions
| 'bodyParserConfig'
| 'installSubscriptionHandlers'
>,
Omit<GatewayConfig, 'buildService'> {}
Omit<GatewayConfig, 'buildService' | 'serviceList' | 'introspectionHeaders'> {
serviceList: ServiceEndpointDefinition[];
introspectionHeaders?: HeaderInit;
}

export interface GatewayOptionsFactory {
createGatewayOptions(): Promise<GatewayModuleOptions> | GatewayModuleOptions;
Expand Down

0 comments on commit aecc008

Please sign in to comment.