@mfgx/shared-lib-http-client-graphql

v3.35.0

Published

An GraphQL client that allows deferred execution of GraphQL requests.

Readme

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)