| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.GraphQL
Description
This module provides the functions to parse and execute GraphQL queries.
Synopsis
- graphql :: (MonadCatch m, VariableValue a, Serialize b) => Schema m -> Maybe Text -> HashMap Name a -> Text -> m (Either (ResponseEventStream m b) (Response b))
Documentation
Arguments
| :: (MonadCatch m, VariableValue a, Serialize b) | |
| => Schema m | Resolvers. |
| -> Maybe Text | Operation name. |
| -> HashMap Name a | Variable substitution function. |
| -> Text | Text representing a |
| -> m (Either (ResponseEventStream m b) (Response b)) | Response. |
If the text parses correctly as a GraphQL query the query is
executed using the given Schema.
An operation name can be given if the document contains multiple operations.