Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/pages/upgrade-guides/v16-v17.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ behavior will be exposed as `default: { literal: <literal> }`.
The `GraphQLError` constructor now only accepts a message and options object as arguments. Previously, it also accepted positional arguments.

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

## `createSourceEventStream` arguments
Expand Down
Loading