graphql-0.7.0.0: Haskell GraphQL implementation

Safe HaskellNone
LanguageHaskell2010

Language.GraphQL

Description

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

Synopsis

Documentation

graphql Source #

Arguments

:: Monad m 
=> HashMap Text (NonEmpty (Resolver m))

Resolvers.

-> Text

Text representing a GraphQL request document.

-> m Value

Response.

If the text parses correctly as a GraphQL query the query is executed using the given Resolvers.

graphqlSubs Source #

Arguments

:: Monad m 
=> HashMap Text (NonEmpty (Resolver m))

Resolvers.

-> Subs

Variable substitution function.

-> Text

Text representing a GraphQL request document.

-> m Value

Response.

If the text parses correctly as a GraphQL query the substitution is applied to the query and the query is then executed using to the given Resolvers.