-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
434 additions
and
38 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
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
3 changes: 3 additions & 0 deletions
3
test/GqlPlus.ComponentTestBase/Samples/Schema/InvalidSimple/union-parent-diff.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,3 @@ | ||
union Test { :Parent Number } | ||
union Test { Number } | ||
union Parent { String } |
3 changes: 3 additions & 0 deletions
3
test/GqlPlus.ComponentTestBase/Samples/Schema/InvalidSimple/union-parent-diff.verify-errors
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,3 @@ | ||
Multiple Unions with name 'Test' can't be merged., | ||
Group of Union for 'Test' is not singular Parent['', 'Parent'], | ||
Multiple Types with name 'Test' can't be merged. |
4 changes: 2 additions & 2 deletions
4
test/GqlPlus.ComponentTestBase/Samples/Schema/InvalidSimple/union-parent-more.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
union Test { :Parent } | ||
union Test { :Parent String } | ||
union Parent { More } | ||
union More { :Bad } | ||
union More { :Bad String } | ||
union Bad { Test } |
2 changes: 1 addition & 1 deletion
2
test/GqlPlus.ComponentTestBase/Samples/Schema/InvalidSimple/union-parent-recurse.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
union Test { :Parent } | ||
union Test { :Parent String } | ||
union Parent { Bad } | ||
union Bad { Test } |
1 change: 1 addition & 0 deletions
1
test/GqlPlus.ComponentTestBase/Samples/Schema/InvalidSimple/union-parent-undef.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 @@ | ||
union Test { :Parent Number } |
1 change: 1 addition & 0 deletions
1
test/GqlPlus.ComponentTestBase/Samples/Schema/InvalidSimple/union-parent-undef.verify-errors
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 @@ | ||
Invalid Union Parent. 'Parent' not defined. |
2 changes: 2 additions & 0 deletions
2
test/GqlPlus.ComponentTestBase/Samples/Schema/InvalidSimple/union-parent-wrong.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,2 @@ | ||
union Test { :Parent Number } | ||
output Parent { } |
1 change: 1 addition & 0 deletions
1
test/GqlPlus.ComponentTestBase/Samples/Schema/InvalidSimple/union-parent-wrong.verify-errors
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 @@ | ||
Invalid Union Parent. 'Parent' invalid type. Found 'Output'. |
2 changes: 1 addition & 1 deletion
2
test/GqlPlus.ComponentTestBase/Samples/Schema/InvalidSimple/union-parent.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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
union Test { :Parent } | ||
union Test { :Parent String } | ||
union Parent { Test } |
2 changes: 1 addition & 1 deletion
2
test/GqlPlus.ComponentTestBase/Samples/Schema/InvalidSimple/union-recurse-parent.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
union Test { Bad } | ||
union Bad { :Parent } | ||
union Bad { :Parent String } | ||
union Parent { Test } |
3 changes: 3 additions & 0 deletions
3
test/GqlPlus.ComponentTestBase/Samples/Schema/ValidMerges/union-same-parent.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,3 @@ | ||
union UnSameParent { :UnParent Boolean } | ||
union UnSameParent { :UnParent Boolean } | ||
union UnParent { String } |
2 changes: 2 additions & 0 deletions
2
test/GqlPlus.ComponentTestBase/Samples/Schema/ValidSimple/union-parent-dup.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,2 @@ | ||
union UnionPrnt { :PrntUnion Number } | ||
union PrntUnion { Number } |
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 |
---|---|---|
@@ -1 +1 @@ | ||
5e5c83d (HEAD -> union-tests, origin/yaml, origin/main, origin/json, origin/include, origin/HEAD, main) 2024-09-24 Merge pull request #3 from graphql-plus/samples | ||
247728f (HEAD -> union-tests, origin/union-tests) 2025-02-08 Improve Union parent samples |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,4 @@ | |
"typeKind": "Union" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.