Skip to content

Commit 10a6f06

Browse files
committed
fix(handler): Request params optional properties can also be null
1 parent c1b85b3 commit 10a6f06

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/interfaces/common.RequestParams.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Reference: https://graphql.github.io/graphql-over-http/draft/#sec-Request-Parame
2121

2222
### extensions
2323

24-
`Optional` **extensions**: `Record`<`string`, `unknown`\>
24+
`Optional` **extensions**: ``null`` \| `Record`<`string`, `unknown`\>
2525

2626
___
2727

2828
### operationName
2929

30-
`Optional` **operationName**: `string`
30+
`Optional` **operationName**: ``null`` \| `string`
3131

3232
___
3333

@@ -39,4 +39,4 @@ ___
3939

4040
### variables
4141

42-
`Optional` **variables**: `Record`<`string`, `unknown`\>
42+
`Optional` **variables**: ``null`` \| `Record`<`string`, `unknown`\>

src/common.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
* @category Common
1313
*/
1414
export interface RequestParams {
15-
operationName?: string | undefined;
15+
operationName?: string | null | undefined;
1616
query: string;
17-
variables?: Record<string, unknown> | undefined;
18-
extensions?: Record<string, unknown> | undefined;
17+
variables?: Record<string, unknown> | null | undefined;
18+
extensions?: Record<string, unknown> | null | undefined;
1919
}
2020

2121
/**

0 commit comments

Comments
 (0)