Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/apollo-gateway/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ export class ApolloGateway implements GraphQLService {
}

public async load(options?: { engine?: GraphQLServiceEngineConfig }) {
if (options) this.engineConfig = options.engine;
if (options && options.engine) {
if (!options.engine.graphVariant)
console.warn('No graph variant provided. Defaulting to `current`.');
this.engineConfig = options.engine;
}

if (this.schema) {
return { schema: this.schema, executor: this.executor };
}
Expand Down
1 change: 0 additions & 1 deletion packages/apollo-gateway/src/loadServicesFromStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export async function getServiceDefinitionsFromStorage({
const secret = await fetchStorageSecret(graphId, apiKeyHash);

if (!graphVariant) {
console.warn('No graphVariant specified, defaulting to "current".');
graphVariant = 'current';
}

Expand Down