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

Hasura.GraphQL.Logging

Description

This module holds functions and data types used for logging at the GraphQL layer. In contrast with, logging at the HTTP server layer.

Synopsis

Documentation

data QueryLog Source #

A GraphQL query, optionally generated SQL, and the request id makes up the | QueryLog

Instances

Instances details
ToJSON QueryLog Source # 
Instance details

Defined in Hasura.GraphQL.Logging

Methods

toJSON :: QueryLog -> Value

toEncoding :: QueryLog -> Encoding

toJSONList :: [QueryLog] -> Value

toEncodingList :: [QueryLog] -> Encoding

ToEngineLog QueryLog Hasura Source # 
Instance details

Defined in Hasura.GraphQL.Logging

data GeneratedQuery Source #

Constructors

GeneratedQuery 

Fields

Instances

Instances details
ToJSON GeneratedQuery Source # 
Instance details

Defined in Hasura.GraphQL.Logging

Methods

toJSON :: GeneratedQuery -> Value

toEncoding :: GeneratedQuery -> Encoding

toJSONList :: [GeneratedQuery] -> Value

toEncodingList :: [GeneratedQuery] -> Encoding

class Monad m => MonadQueryLog m where Source #

Methods

logQueryLog :: Logger Hasura -> QueryLog -> m () Source #

Instances

Instances details
MonadQueryLog m => MonadQueryLog (TraceT m) Source # 
Instance details

Defined in Hasura.GraphQL.Logging

MonadQueryLog m => MonadQueryLog (MetadataStorageT m) Source # 
Instance details

Defined in Hasura.GraphQL.Logging

MonadIO m => MonadQueryLog (PGMetadataStorageAppT m) Source # 
Instance details

Defined in Hasura.App

MonadQueryLog m => MonadQueryLog (ExceptT e m) Source # 
Instance details

Defined in Hasura.GraphQL.Logging

MonadQueryLog m => MonadQueryLog (ReaderT r m) Source # 
Instance details

Defined in Hasura.GraphQL.Logging