-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(parser): selection set is required for named operation definitions (
- Loading branch information
Showing
5 changed files
with
24 additions
and
2 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
1 change: 1 addition & 0 deletions
1
...pollo-parser/test_data/parser/err/0040_operation_definition_missing_selection_set.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 @@ | ||
query __typename } |
10 changes: 10 additions & 0 deletions
10
...es/apollo-parser/test_data/parser/err/0040_operation_definition_missing_selection_set.txt
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,10 @@ | ||
- DOCUMENT@0..17 | ||
- OPERATION_DEFINITION@0..17 | ||
- OPERATION_TYPE@0..6 | ||
- query_KW@0..5 "query" | ||
- WHITESPACE@5..6 " " | ||
- NAME@6..17 | ||
- IDENT@6..16 "__typename" | ||
- WHITESPACE@16..17 " " | ||
- ERROR@17:18 "expected a Selection Set" } | ||
recursion limit: 4096, high: 0 |
1 change: 1 addition & 0 deletions
1
...-parser/test_data/parser/err/0041_operation_definition_with_missing_selection_set.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 @@ | ||
query __typename |
9 changes: 9 additions & 0 deletions
9
...ollo-parser/test_data/parser/err/0041_operation_definition_with_missing_selection_set.txt
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,9 @@ | ||
- DOCUMENT@0..16 | ||
- OPERATION_DEFINITION@0..16 | ||
- OPERATION_TYPE@0..6 | ||
- query_KW@0..5 "query" | ||
- WHITESPACE@5..6 " " | ||
- NAME@6..16 | ||
- IDENT@6..16 "__typename" | ||
- ERROR@16:16 "expected a Selection Set" EOF | ||
recursion limit: 4096, high: 0 |