Skip to content

Commit

Permalink
✨ execute operation with external context
Browse files Browse the repository at this point in the history
  • Loading branch information
chengcyber committed May 27, 2020
1 parent 7d6f234 commit 588d623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/apollo-server-core/src/ApolloServer.ts
Expand Up @@ -830,8 +830,8 @@ export class ApolloServerBase {
};
}

public async executeOperation(request: GraphQLRequest) {
const options = await this.graphQLServerOptions();
public async executeOperation(request: GraphQLRequest, integrationContextArgument?: Record<string, any>) {
const options = await this.graphQLServerOptions(integrationContextArgument);

if (typeof options.context === 'function') {
options.context = (options.context as () => never)();
Expand Down

0 comments on commit 588d623

Please sign in to comment.