diff options
| author | Eugen Wissner <belka@caraus.de> | 2020-07-11 06:34:10 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2020-07-11 06:34:10 +0200 |
| commit | 840e129c4496b4e8145480d2b3c3cb34f505702e (patch) | |
| tree | 0b79c0f8045d93505d8285ebff327000a6926168 /src/Language/GraphQL/AST/Document.hs | |
| parent | 04a58be3f86ced396eed26f90643e7c88e7f2b4d (diff) | |
| download | graphql-840e129c4496b4e8145480d2b3c3cb34f505702e.tar.gz | |
Parse subscriptions
Diffstat (limited to 'src/Language/GraphQL/AST/Document.hs')
| -rw-r--r-- | src/Language/GraphQL/AST/Document.hs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Language/GraphQL/AST/Document.hs b/src/Language/GraphQL/AST/Document.hs index ed473b7..cd1dbc6 100644 --- a/src/Language/GraphQL/AST/Document.hs +++ b/src/Language/GraphQL/AST/Document.hs @@ -99,9 +99,7 @@ data OperationDefinition -- * mutation - a write operation followed by a fetch. -- * subscription - a long-lived request that fetches data in response to -- source events. --- --- Currently only queries and mutations are supported. -data OperationType = Query | Mutation deriving (Eq, Show) +data OperationType = Query | Mutation | Subscription deriving (Eq, Show) -- ** Selection Sets |
