graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.Server.App

Synopsis

Documentation

data HandlerCtx Source #

Instances

Instances details
Monad m => MonadReader HandlerCtx (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

Methods

ask :: Handler m HandlerCtx #

local :: (HandlerCtx -> HandlerCtx) -> Handler m a -> Handler m a #

reader :: (HandlerCtx -> a) -> Handler m a #

data Handler m a Source #

Instances

Instances details
MonadTrans Handler Source # 
Instance details

Defined in Hasura.Server.App

Methods

lift :: Monad m => m a -> Handler m a #

MonadBaseControl b m => MonadBaseControl b (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

Associated Types

type StM (Handler m) a Source #

Methods

liftBaseWith :: (RunInBase (Handler m) b -> b a) -> Handler m a Source #

restoreM :: StM (Handler m) a -> Handler m a Source #

Monad m => MonadError QErr (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

Methods

throwError :: QErr -> Handler m a #

catchError :: Handler m a -> (QErr -> Handler m a) -> Handler m a #

Monad m => MonadReader HandlerCtx (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

Methods

ask :: Handler m HandlerCtx #

local :: (HandlerCtx -> HandlerCtx) -> Handler m a -> Handler m a #

reader :: (HandlerCtx -> a) -> Handler m a #

MonadBase b m => MonadBase b (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

Methods

liftBase :: b α -> Handler m α Source #

MonadFix m => MonadFix (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

Methods

mfix :: (a -> Handler m a) -> Handler m a #

MonadIO m => MonadIO (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

Methods

liftIO :: IO a -> Handler m a #

Monad m => Applicative (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

Methods

pure :: a -> Handler m a #

(<*>) :: Handler m (a -> b) -> Handler m a -> Handler m b #

liftA2 :: (a -> b -> c) -> Handler m a -> Handler m b -> Handler m c #

(*>) :: Handler m a -> Handler m b -> Handler m b #

(<*) :: Handler m a -> Handler m b -> Handler m a #

Functor m => Functor (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

Methods

fmap :: (a -> b) -> Handler m a -> Handler m b #

(<$) :: a -> Handler m b -> Handler m a #

Monad m => Monad (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

Methods

(>>=) :: Handler m a -> (a -> Handler m b) -> Handler m b #

(>>) :: Handler m a -> Handler m b -> Handler m b #

return :: a -> Handler m a #

HasAppEnv m => HasAppEnv (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

MonadGQLExecutionCheck m => MonadGQLExecutionCheck (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

MonadExecutionLog m => MonadExecutionLog (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

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

Defined in Hasura.Server.App

MonadExecuteQuery m => MonadExecuteQuery (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

MonadMetadataStorage m => MonadMetadataStorage (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

Methods

fetchMetadataResourceVersion :: Handler m (Either QErr MetadataResourceVersion) Source #

fetchMetadata :: Handler m (Either QErr MetadataWithResourceVersion) Source #

fetchMetadataNotifications :: MetadataResourceVersion -> InstanceId -> Handler m (Either QErr [(MetadataResourceVersion, CacheInvalidations)]) Source #

setMetadata :: MetadataResourceVersion -> Metadata -> Handler m (Either QErr MetadataResourceVersion) Source #

notifySchemaCacheSync :: MetadataResourceVersion -> InstanceId -> CacheInvalidations -> Handler m (Either QErr ()) Source #

getCatalogState :: Handler m (Either QErr CatalogState) Source #

setCatalogState :: CatalogStateType -> Value -> Handler m (Either QErr ()) Source #

fetchSourceIntrospection :: MetadataResourceVersion -> Handler m (Either QErr (Maybe StoredIntrospection)) Source #

storeSourceIntrospection :: StoredIntrospection -> MetadataResourceVersion -> Handler m (Either QErr ()) Source #

getMetadataDbUid :: Handler m (Either QErr MetadataDbId) Source #

checkMetadataStorageHealth :: Handler m (Either QErr ()) Source #

getDeprivedCronTriggerStats :: [TriggerName] -> Handler m (Either QErr [CronTriggerStats]) Source #

getScheduledEventsForDelivery :: [TriggerName] -> Handler m (Either QErr ([CronEvent], [OneOffScheduledEvent])) Source #

insertCronEvents :: [CronEventSeed] -> Handler m (Either QErr ()) Source #

insertOneOffScheduledEvent :: OneOffEvent -> Handler m (Either QErr EventId) Source #

insertScheduledEventInvocation :: Invocation 'ScheduledType -> ScheduledEventType -> Handler m (Either QErr ()) Source #

setScheduledEventOp :: ScheduledEventId -> ScheduledEventOp -> ScheduledEventType -> Handler m (Either QErr ()) Source #

unlockScheduledEvents :: ScheduledEventType -> [ScheduledEventId] -> Handler m (Either QErr Int) Source #

unlockAllLockedScheduledEvents :: Handler m (Either QErr ()) Source #

clearFutureCronEvents :: ClearCronEvents -> Handler m (Either QErr ()) Source #

getOneOffScheduledEvents :: ScheduledEventPagination -> [ScheduledEventStatus] -> RowsCountOption -> Handler m (Either QErr (WithOptionalTotalCount [OneOffScheduledEvent])) Source #

getCronEvents :: TriggerName -> ScheduledEventPagination -> [ScheduledEventStatus] -> RowsCountOption -> Handler m (Either QErr (WithOptionalTotalCount [CronEvent])) Source #

getScheduledEventInvocations :: GetScheduledEventInvocations -> Handler m (Either QErr (WithOptionalTotalCount [ScheduledEventInvocation])) Source #

deleteScheduledEvent :: ScheduledEventId -> ScheduledEventType -> Handler m (Either QErr ()) Source #

insertAction :: ActionName -> SessionVariables -> [Header] -> Value -> Handler m (Either QErr ActionId) Source #

fetchUndeliveredActionEvents :: Handler m (Either QErr [ActionLogItem]) Source #

setActionStatus :: ActionId -> AsyncActionStatus -> Handler m (Either QErr ()) Source #

fetchActionResponse :: ActionId -> Handler m (Either QErr ActionLogResponse) Source #

clearActionData :: ActionName -> Handler m (Either QErr ()) Source #

setProcessingActionLogsToPending :: LockedActionIdArray -> Handler m (Either QErr ()) Source #

MonadQueryTags m => MonadQueryTags (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

MonadEventLogCleanup m => MonadEventLogCleanup (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

HasCacheStaticConfig m => HasCacheStaticConfig (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

Monad m => UserInfoM (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

MonadResolveSource m => MonadResolveSource (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

MonadMetadataApiAuthorization m => MonadMetadataApiAuthorization (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

HasFeatureFlagChecker m => HasFeatureFlagChecker (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

HasResourceLimits m => HasResourceLimits (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

MonadGetPolicies m => MonadGetPolicies (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

ProvidesNetwork m => ProvidesNetwork (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

MonadTrace m => MonadTrace (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

type StM (Handler m) a Source # 
Instance details

Defined in Hasura.Server.App

class Monad m => MonadMetadataApiAuthorization m where Source #

Typeclass representing the metadata API authorization effect

Instances

Instances details
MonadMetadataApiAuthorization AppM Source # 
Instance details

Defined in Hasura.App

MonadMetadataApiAuthorization m => MonadMetadataApiAuthorization (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

MonadMetadataApiAuthorization m => MonadMetadataApiAuthorization (TraceT m) Source # 
Instance details

Defined in Hasura.Server.App

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

Defined in Hasura.Server.App

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

Defined in Hasura.Server.App

class Monad m => MonadConfigApiHandler m where Source #

The config API (v1alpha1config) handler

Instances

Instances details
MonadConfigApiHandler AppM Source # 
Instance details

Defined in Hasura.App

mkSpockAction Source #

Arguments

:: forall m a impl. (MonadIO m, MonadBaseControl IO m, HasAppEnv m, FromJSON a, UserAuthentication m, HttpLog m, HasResourceLimits m, MonadTrace m) 
=> AppStateRef impl 
-> (Bool -> QErr -> Encoding)

QErr JSON encoder function

-> (QErr -> QErr)

QErr modifier

-> APIHandler m a 
-> ActionT m () 

class Monad m => ConsoleRenderer m where Source #

Associated Types

type ConsoleType m :: Type Source #

Instances

Instances details
ConsoleRenderer AppM Source # 
Instance details

Defined in Hasura.App

Associated Types

type ConsoleType AppM Source #

ConsoleRenderer m => ConsoleRenderer (TraceT m) Source # 
Instance details

Defined in Hasura.Server.App

Associated Types

type ConsoleType (TraceT m) Source #

class Monad m => MonadVersionAPIWithExtraData m where Source #

Instances

Instances details
MonadVersionAPIWithExtraData AppM Source # 
Instance details

Defined in Hasura.App