diff options
| author | Eugen Wissner <belka@caraus.de> | 2019-11-06 06:34:36 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2019-11-07 06:34:36 +0100 |
| commit | b77da3d4928797962c8a61d08337c266c00fa77d (patch) | |
| tree | c777764f2d105d76a7637d69691421a911d25ae4 /src/Language/GraphQL/AST.hs | |
| parent | 73fc334bf8d7bd6d8b83143995844ca0968ceeda (diff) | |
| download | graphql-b77da3d4928797962c8a61d08337c266c00fa77d.tar.gz | |
AST.Transform: Pass down a reader
The reader contains variable substitution functions and fragments.
Diffstat (limited to 'src/Language/GraphQL/AST.hs')
| -rw-r--r-- | src/Language/GraphQL/AST.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Language/GraphQL/AST.hs b/src/Language/GraphQL/AST.hs index b2feb4d..44bf969 100644 --- a/src/Language/GraphQL/AST.hs +++ b/src/Language/GraphQL/AST.hs @@ -66,7 +66,7 @@ data OperationType = Query | Mutation deriving (Eq, Show) -- * Selections --- | "Top-level" selection, selection on a operation. +-- | "Top-level" selection, selection on an operation or fragment. type SelectionSet = NonEmpty Selection -- | Field selection. @@ -100,7 +100,7 @@ data Selection -- * "user", "id" and "name" are field names. -- * "user" has two subfields, "id" and "name". -- * "zuck" is an alias for "user". "id" and "name" have no aliases. --- * "id: 4" is an argument for "name". "id" and "name don't have any +-- * "id: 4" is an argument for "user". "id" and "name" don't have any -- arguments. data Field = Field (Maybe Alias) Name [Argument] [Directive] SelectionSetOpt |
