Skip to content

Commit

Permalink
fix(handler): Request params optional properties can also be null
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Jul 8, 2023
1 parent c1b85b3 commit 10a6f06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/interfaces/common.RequestParams.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ Reference: https://graphql.github.io/graphql-over-http/draft/#sec-Request-Parame

### extensions

`Optional` **extensions**: `Record`<`string`, `unknown`\>
`Optional` **extensions**: ``null`` \| `Record`<`string`, `unknown`\>

___

### operationName

`Optional` **operationName**: `string`
`Optional` **operationName**: ``null`` \| `string`

___

Expand All @@ -39,4 +39,4 @@ ___

### variables

`Optional` **variables**: `Record`<`string`, `unknown`\>
`Optional` **variables**: ``null`` \| `Record`<`string`, `unknown`\>
6 changes: 3 additions & 3 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
* @category Common
*/
export interface RequestParams {
operationName?: string | undefined;
operationName?: string | null | undefined;
query: string;
variables?: Record<string, unknown> | undefined;
extensions?: Record<string, unknown> | undefined;
variables?: Record<string, unknown> | null | undefined;
extensions?: Record<string, unknown> | null | undefined;
}

/**
Expand Down

0 comments on commit 10a6f06

Please sign in to comment.