From c5e4dc194c77fe700c306954896a9b4927985811 Mon Sep 17 00:00:00 2001 From: Robert Zhu Date: Wed, 14 Jun 2017 13:01:54 -0400 Subject: [PATCH] Revert "Add support for leading vertical bar in union types" --- spec/Section 3 -- Type System.md | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/spec/Section 3 -- Type System.md b/spec/Section 3 -- Type System.md index 7f974a90b..6941e20d8 100644 --- a/spec/Section 3 -- Type System.md +++ b/spec/Section 3 -- Type System.md @@ -755,28 +755,6 @@ Union types have the potential to be invalid if incorrectly defined. Similarly, wrapping types may not be member types of a Union. 2. A Union type must define one or more unique member types. -#### Union type syntax - -Union types are defined by delimiting one or more types with a single vertical bar character `|`: - -```graphql -union SearchResult = Photo | Person -``` - -You may also use a leading vertical bar: - -```graphql -union SearchResult = - | Photo - | Person -``` - -Trailing delimiters are not supported: - -```!graphql -union SearchResult = Photo | Person | -``` - ### Enums GraphQL Enums are a variant on the Scalar type, which represents one of a