-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We had a `GraphQLErrorArgs` type that was almost equivalent to the graphql-js `GraphQLErrorOptions`, and the reason being that the later was added recently-ish, but keeping that slight inconsistency doesn't make sense and this commit fixes. It does imply mimicking the new `GraphQLError` constructor signature which have the message first and the options, while we had put the message inside the options on our side, so this imply changing all the call sites, but it's one-off easy-if-annoying fix, so just went with it. This commit also: * removes the `error()` method from `definition.ts` and replaces it by either `assert` or a proper error. * fix a bit of code duplication.
- Loading branch information
Sylvain Lebresne
authored
Jun 28, 2022
1 parent
71fbe7c
commit 3686fca
Showing
22 changed files
with
767 additions
and
730 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.