3.35.0 • Published 3 years ago

@mfgx/shared-lib-http-client-graphql v3.35.0

Weekly downloads
48
License
MIT
Repository
-
Last release
3 years ago

MFGx GraphQL Client

This package contains an GraphQL client implementation that allows for deferred execution of GraphQL requests.

graphqlRequest

The function takes in a GraphQL Request and returns a Reader of Async where the environment is an HttpEnvironment (see http-client). It also applies a transformation to the HttpResponse to handle GraphQL responses.

GraphQLRequest :: { query: String, variables?: Object } graphqlRequest :: GraphQLRequest -> ReaderT HttpEnvironment (Async Error Object)