Skip to content

Commit 8ce457b

Browse files
authored
Merge pull request #322 from facebook/revert-320-allow-union-type-begining-pipe
Revert "Add support for leading vertical bar in union types"
2 parents 47236bf + c5e4dc1 commit 8ce457b

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

spec/Section 3 -- Type System.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -755,28 +755,6 @@ Union types have the potential to be invalid if incorrectly defined.
755755
Similarly, wrapping types may not be member types of a Union.
756756
2. A Union type must define one or more unique member types.
757757

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-
780758
### Enums
781759

782760
GraphQL Enums are a variant on the Scalar type, which represents one of a

0 commit comments

Comments
 (0)