Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides functions to execute a GraphQL
request.
Documentation
:: MonadIO m | |
=> NonEmpty (Resolver m) | Resolvers. |
-> Subs | Variable substitution function. |
-> Document | |
-> m Value |
The substitution is applied to the document, and the resolvers are applied to the resulting fields.
Returns the result of the query against the schema wrapped in a data field, or errors wrapped in an errors field.
:: MonadIO m | |
=> NonEmpty (Resolver m) | Resolvers |
-> Text | Operation name. |
-> Subs | Variable substitution function. |
-> Document |
|
-> m Value |
The substitution is applied to the document, and the resolvers are applied to the resulting fields. The operation name can be used if the document defines multiple root operations.
Returns the result of the query against the schema wrapped in a data field, or errors wrapped in an errors field.