graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.GraphQL.RemoteServer

Synopsis

Documentation

fetchRemoteSchema :: forall m. (MonadIO m, MonadError QErr m, MonadTrace m) => Environment -> Manager -> RemoteSchemaName -> ValidatedRemoteSchemaDef -> m RemoteSchemaCtx Source #

Make an introspection query to the remote graphql server for the data we need to present and stitch the remote schema. This powers add_remote_schema, and also is called by schema cache rebuilding code in Hasura.RQL.DDL.Schema.Cache.

execRemoteGQ Source #

Arguments

:: (MonadIO m, MonadError QErr m, MonadTrace m) 
=> Environment 
-> Manager 
-> UserInfo 
-> [Header] 
-> ValidatedRemoteSchemaDef 
-> GQLReqOutgoing 
-> m (DiffTime, [Header], ByteString)

Returns the response body and headers, along with the time taken for the HTTP request to complete

Sends a GraphQL query to the given server.

newtype FromIntrospection a Source #

Parsing the introspection query result. We use this newtype wrapper to avoid orphan instances and parse JSON in the way that we need for GraphQL introspection results.

Constructors

FromIntrospection 

Fields

pErr :: MonadFail m => Text -> m a Source #

kindErr :: MonadFail m => Text -> Text -> m a Source #

throwRemoteSchema :: QErrM m => Text -> m a Source #

throwRemoteSchemaHttp :: QErrM m => EnvRecord URI -> HttpException -> m a Source #