-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gatsby): Improve structured errors around GraphQL (#20120)
* move generic graphql error to structured error * 85920: Variables in StaticQueries * 85921: Wrong variable type in query * 85922: Wrong subfield usage * 85923: Error about missing field - can be caused by many things * 85924: Explicitly defined a type and the value on a field is wrong * 85925: non-nullable field * 11321: graphql is not defined * beginning of gatsby-node errors * some linting * 85910: improve messsage * remove console logs * fix typo * also use optionalGraphQLInfo for 11321 error * update jest snapshots * fix some more tests and update snapshots * don't color code frame in tests * actually apply tests "fix" to both codeframe in the error Co-authored-by: GatsbyJS Bot <mathews.kyle+gatsbybot@gmail.com> Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
- Loading branch information
1 parent
fa2824d
commit a5740f9
Showing
10 changed files
with
344 additions
and
97 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
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.