We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9980c1 commit 6abdf2aCopy full SHA for 6abdf2a
src/index.ts
@@ -15,6 +15,7 @@ import type { WithRequired } from '@apollo/utils.withrequired';
15
16
export interface AzureFunctionsContextFunctionArgument {
17
context: Context;
18
+ req: HttpRequest;
19
}
20
21
export interface AzureFunctionsMiddlewareOptions<TContext extends BaseContext> {
@@ -46,7 +47,7 @@ export function startServerAndCreateHandler<TContext extends BaseContext>(
46
47
48
const { body, headers, status } = await server.executeHTTPGraphQLRequest({
49
httpGraphQLRequest: normalizedRequest,
- context: () => contextFunction({ context }),
50
+ context: () => contextFunction({ context, req }),
51
});
52
53
if (body.kind === 'chunked') {
0 commit comments