-
-
Notifications
You must be signed in to change notification settings - Fork 541
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: ensure error selection set parse correctly
- Loading branch information
1 parent
4a9e320
commit 83949bf
Showing
2 changed files
with
1,530 additions
and
0 deletions.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
crates/biome_graphql_parser/tests/graphql_test_suite/err/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,79 @@ | ||
{ | ||
hero { | ||
name, | ||
age | ||
|
||
} | ||
|
||
{ | ||
hero(name: "Tony Stark" | ||
} | ||
|
||
{ | ||
hero(name "Tony Stark") | ||
country, | ||
name, | ||
age | ||
} | ||
} | ||
|
||
{ | ||
hero(name: "Tony Stark") { | ||
country, | ||
name, | ||
age, | ||
height(unit FOOT, | ||
} | ||
} | ||
|
||
{ | ||
ironMan: (name: "Tony Stark") | ||
} | ||
|
||
{ | ||
ironMan: hero(name: "Tony Stark" { | ||
country, | ||
firstWife: wife(name: "Pepper"){ | ||
} | ||
} | ||
|
||
{ | ||
ironMan: hero(name: "Tony Stark") @{ | ||
country @, | ||
name, | ||
age | ||
} | ||
} | ||
|
||
# Fragment spread | ||
{ | ||
... | ||
} | ||
|
||
{ | ||
... @deprecated | ||
} | ||
|
||
{ | ||
ironMan: (: "Tony Stark") @ { | ||
... | ||
} | ||
} | ||
|
||
{ | ||
... { | ||
hero | ||
} | ||
|
||
{ | ||
... @ | ||
hero | ||
} | ||
} | ||
|
||
{ | ||
... Hero @ { | ||
name, | ||
age | ||
} | ||
} |
Oops, something went wrong.