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

Hasura.RQL.Types.Eventing

Description

This module contains types which are common to event triggers and scheduled triggers.

Synopsis

Documentation

newtype EventId Source #

Constructors

EventId 

Fields

Instances

Instances details
FromJSON EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

ToJSON EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

ToJSONKey EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Generic EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Associated Types

type Rep EventId :: Type -> Type #

Methods

from :: EventId -> Rep EventId x #

to :: Rep EventId x -> EventId #

Show EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

NFData EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Methods

rnf :: EventId -> () #

Eq EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Methods

(==) :: EventId -> EventId -> Bool #

(/=) :: EventId -> EventId -> Bool #

Ord EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Hashable EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

ToTxt EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Methods

toTxt :: EventId -> Text Source #

FromCol EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

ToPrepArg EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

type Rep EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

type Rep EventId = D1 ('MetaData "EventId" "Hasura.RQL.Types.Eventing" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "EventId" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEventId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data TriggerTypes Source #

There are two types of events: EventType (for event triggers) and ScheduledType (for scheduled triggers)

Constructors

EventType 
ScheduledType 

data WebhookRequest Source #

Instances

Instances details
ToJSON WebhookRequest Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Generic WebhookRequest Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Associated Types

type Rep WebhookRequest :: Type -> Type #

type Rep WebhookRequest Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

type Rep WebhookRequest = D1 ('MetaData "WebhookRequest" "Hasura.RQL.Types.Eventing" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "WebhookRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rqPayload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Value) :*: (S1 ('MetaSel ('Just "_rqHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [HeaderConf]) :*: S1 ('MetaSel ('Just "_rqVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newtype ClientError Source #

Constructors

ClientError 

Instances

Instances details
ToJSON ClientError Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Generic ClientError Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Associated Types

type Rep ClientError :: Type -> Type #

type Rep ClientError Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

type Rep ClientError = D1 ('MetaData "ClientError" "Hasura.RQL.Types.Eventing" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "ClientError" 'PrefixI 'True) (S1 ('MetaSel ('Just "_ceMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SerializableBlob)))

newtype PGTextArray Source #

PGTextArray is only used for PG array encoding

Constructors

PGTextArray 

Fields

Instances

Instances details
Show PGTextArray Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Eq PGTextArray Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

ToPrepArg PGTextArray Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

data OpVar Source #

Used to construct the payload of Event Trigger

OLD: Depicts the old database row value for UPDATE/DELETE trigger operations. This is used to construct the 'data.old' field of the event trigger payload. The value of 'data.old' is null in INSERT trigger operation.

NEW: Depicts the new database row value for INSERT/UPDATE trigger operations. This is used to construct the 'data.new' field of the event trigger payload. The value of 'data.new' is null in DELETE trigger operation.

Constructors

OLD 
NEW 

Instances

Instances details
Show OpVar Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Methods

showsPrec :: Int -> OpVar -> ShowS #

show :: OpVar -> String #

showList :: [OpVar] -> ShowS #