File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -755,28 +755,6 @@ Union types have the potential to be invalid if incorrectly defined.
755
755
Similarly, wrapping types may not be member types of a Union.
756
756
2 . A Union type must define one or more unique member types.
757
757
758
- #### Union type syntax
759
-
760
- Union types are defined by delimiting one or more types with a single vertical bar character ` | ` :
761
-
762
- ``` graphql
763
- union SearchResult = Photo | Person
764
- ```
765
-
766
- You may also use a leading vertical bar :
767
-
768
- ```graphql
769
- union SearchResult =
770
- | Photo
771
- | Person
772
- ```
773
-
774
- Trailing delimiters are not supported:
775
-
776
- ``` !graphql
777
- union SearchResult = Photo | Person |
778
- ```
779
-
780
758
### Enums
781
759
782
760
GraphQL Enums are a variant on the Scalar type, which represents one of a
You can’t perform that action at this time.
0 commit comments