Skip to content

Commit e7a94e2

Browse files
Change wording, Add example for unsupported trailing vertical bar
1 parent 5e4970a commit e7a94e2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spec/Section 3 -- Type System.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,15 +763,19 @@ Union types are defined by delimiting one or more types with a single vertical b
763763
union SearchResult = Photo | Person
764764
```
765765

766-
You may also use a leading vertical bar.
766+
You may also use a leading vertical bar:
767767

768768
```graphql
769769
union SearchResult =
770770
| Photo
771771
| Person
772772
```
773773

774-
Note Trailing vertical bars are not supported.
774+
Trailing delimiters are not supported:
775+
776+
```!graphql
777+
union SearchResult = Photo | Person |
778+
```
775779

776780
### Enums
777781

0 commit comments

Comments
 (0)