From d327d9d1ce9670e51b7eef7a4272aaf3b6290228 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 5 Sep 2020 10:00:58 +0200 Subject: Validate fragment spread type existence --- src/Language/GraphQL/AST/Document.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Language/GraphQL/AST/Document.hs') diff --git a/src/Language/GraphQL/AST/Document.hs b/src/Language/GraphQL/AST/Document.hs index 3b94e55..f780a9d 100644 --- a/src/Language/GraphQL/AST/Document.hs +++ b/src/Language/GraphQL/AST/Document.hs @@ -162,9 +162,9 @@ type SelectionSetOpt = [Selection] -- } -- @ data Selection - = Field (Maybe Alias) Name [Argument] [Directive] SelectionSetOpt + = Field (Maybe Alias) Name [Argument] [Directive] SelectionSetOpt Location | FragmentSpread Name [Directive] Location - | InlineFragment (Maybe TypeCondition) [Directive] SelectionSet + | InlineFragment (Maybe TypeCondition) [Directive] SelectionSet Location deriving (Eq, Show) -- ** Arguments -- cgit v1.2.3