Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module holds functions and data types used for logging at the GraphQL layer. In contrast with, logging at the HTTP server layer.
Synopsis
- data QueryLog = QueryLog {}
- data QueryLogKind
- data GeneratedQuery = GeneratedQuery {
- _gqQueryString :: Text
- _gqPreparedArgs :: Value
- class Monad m => MonadQueryLog m where
- logQueryLog :: Logger Hasura -> QueryLog -> m ()
Documentation
A GraphQL query, optionally generated SQL, and the request id makes up the
| QueryLog
QueryLog | |
|
Instances
ToJSON QueryLog Source # | |
Defined in Hasura.GraphQL.Logging toEncoding :: QueryLog -> Encoding toJSONList :: [QueryLog] -> Value toEncodingList :: [QueryLog] -> Encoding | |
ToEngineLog QueryLog Hasura Source # | |
Defined in Hasura.GraphQL.Logging toEngineLog :: QueryLog -> (LogLevel, EngineLogType Hasura, Value) Source # |
data QueryLogKind Source #
QueryLogKindDatabase | |
QueryLogKindAction | |
QueryLogKindRemoteSchema | |
QueryLogKindCached | |
QueryLogKindIntrospection |
Instances
ToJSON QueryLogKind Source # | |
Defined in Hasura.GraphQL.Logging toJSON :: QueryLogKind -> Value toEncoding :: QueryLogKind -> Encoding toJSONList :: [QueryLogKind] -> Value toEncodingList :: [QueryLogKind] -> Encoding |
data GeneratedQuery Source #
GeneratedQuery | |
|
Instances
ToJSON GeneratedQuery Source # | |
Defined in Hasura.GraphQL.Logging toJSON :: GeneratedQuery -> Value toEncoding :: GeneratedQuery -> Encoding toJSONList :: [GeneratedQuery] -> Value toEncodingList :: [GeneratedQuery] -> Encoding |
class Monad m => MonadQueryLog m where Source #
Instances
MonadQueryLog m => MonadQueryLog (TraceT m) Source # | |
Defined in Hasura.GraphQL.Logging | |
MonadQueryLog m => MonadQueryLog (MetadataStorageT m) Source # | |
Defined in Hasura.GraphQL.Logging logQueryLog :: Logger Hasura -> QueryLog -> MetadataStorageT m () Source # | |
MonadIO m => MonadQueryLog (PGMetadataStorageAppT m) Source # | |
Defined in Hasura.App logQueryLog :: Logger Hasura -> QueryLog -> PGMetadataStorageAppT m () Source # | |
MonadQueryLog m => MonadQueryLog (ExceptT e m) Source # | |
Defined in Hasura.GraphQL.Logging | |
MonadQueryLog m => MonadQueryLog (ReaderT r m) Source # | |
Defined in Hasura.GraphQL.Logging |