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 authored and glasser committed Mar 25, 2021
1 parent a3282a2 commit 2c8c86c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/apollo-server-core/src/ApolloServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1256,8 +1256,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 2c8c86c

Please sign in to comment.