forked from facebook/relay
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Craft: use createUserError for unknown types (facebook#2686)
Summary: This improves the compiler error message when an unknown type is used. Pull Request resolved: facebook#2686 Reviewed By: jstejada Differential Revision: D14454331 Pulled By: kassens fbshipit-source-id: 6d2d2d00ae4b547288281bce88c8c163867f1f00
- Loading branch information
1 parent
e69c9b7
commit 825605a
Showing
4 changed files
with
51 additions
and
21 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
5 changes: 5 additions & 0 deletions
5
packages/relay-compiler/core/__tests__/fixtures/parser/undefined-type.invalid.graphql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
query TestQuery($id: UnknownType) { | ||
node(id: "someid") { | ||
id | ||
} | ||
} |