graphql-1.2.0.3: Haskell GraphQL implementation
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.GraphQL

Description

This module provides the functions to parse and execute GraphQL queries.

Synopsis

Documentation

graphql Source #

Arguments

:: (MonadCatch m, VariableValue a, Serialize b) 
=> Schema m

Resolvers.

-> Maybe Text

Operation name.

-> HashMap Name a

Variable substitution function.

-> Text

Text representing a GraphQL request document.

-> 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.