Skip to content

Commit 7d45ff9

Browse files
authored
Deduplicate headers access in Yoga's allowArbitraryOperations (#6901)
1 parent 711dd4a commit 7d45ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/web/docs/src/content/gateway/persisted-documents.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ This can be achieved using the `allowArbitraryOperations` option.
321321
```ts filename="Allow arbitrary GraphQL operations"
322322
{
323323
allowArbitraryOperations: request =>
324-
request.headers.request.headers.get('x-allow-arbitrary-operations') === 'true'
324+
request.headers.get('x-allow-arbitrary-operations') === 'true'
325325
}
326326
```
327327

0 commit comments

Comments
 (0)