Safe Haskell | Safe-Inferred |
---|---|
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 {}
- 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 # | |
ToEngineLog QueryLog Hasura Source # | |
Defined in Hasura.GraphQL.Logging.QueryLog toEngineLog :: QueryLog -> (LogLevel, EngineLogType Hasura, Value) Source # |
data QueryLogKind Source #
QueryLogKindDatabase (Maybe BackendResolvedConnectionTemplate) | |
QueryLogKindAction | |
QueryLogKindRemoteSchema | |
QueryLogKindCached | |
QueryLogKindIntrospection |
Instances
ToJSON QueryLogKind Source # | |
Defined in Hasura.GraphQL.Logging.QueryLog toJSON :: QueryLogKind -> Value Source # toEncoding :: QueryLogKind -> Encoding Source # toJSONList :: [QueryLogKind] -> Value Source # toEncodingList :: [QueryLogKind] -> Encoding Source # |
data GeneratedQuery Source #
Instances
ToJSON GeneratedQuery Source # | |
Defined in Hasura.GraphQL.Logging.QueryLog toJSON :: GeneratedQuery -> Value Source # toEncoding :: GeneratedQuery -> Encoding Source # toJSONList :: [GeneratedQuery] -> Value Source # toEncodingList :: [GeneratedQuery] -> Encoding Source # |
class Monad m => MonadQueryLog m where Source #
Instances
MonadQueryLog AppM Source # | |
Defined in Hasura.App | |
MonadQueryLog m => MonadQueryLog (Handler m) Source # | |
Defined in Hasura.Server.App | |
MonadQueryLog m => MonadQueryLog (TraceT m) Source # | |
Defined in Hasura.GraphQL.Logging.QueryLog | |
MonadQueryLog m => MonadQueryLog (ExceptT e m) Source # | |
Defined in Hasura.GraphQL.Logging.QueryLog | |
MonadQueryLog m => MonadQueryLog (ReaderT r m) Source # | |
Defined in Hasura.GraphQL.Logging.QueryLog |