Skip to content

Commit 85700ed

Browse files
authored
Fix mistake in GraphQLError guidance (#4706)
The guidance currently notes that the second argument to `GraphQLError` was `source` but it actually was `nodes`.
1 parent 8eb6383 commit 85700ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

website/pages/upgrade-guides/v16-v17.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ behavior will be exposed as `default: { literal: <literal> }`.
7979
The `GraphQLError` constructor now only accepts a message and options object as arguments. Previously, it also accepted positional arguments.
8080

8181
```diff
82-
- new GraphQLError('message', 'source', 'positions', 'path', 'originalError', 'extensions');
83-
+ new GraphQLError('message', { source, positions, path, originalError, extensions });
82+
- new GraphQLError('message', nodes, source, positions, path, originalError, extensions);
83+
+ new GraphQLError('message', { nodes, source, positions, path, originalError, extensions });
8484
```
8585

8686
## `createSourceEventStream` arguments

0 commit comments

Comments
 (0)