graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
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
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

Show 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 #

NFData EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Methods

rnf :: EventId -> () #

Hashable EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Methods

hashWithSalt :: Int -> EventId -> Int

hash :: EventId -> Int

FromJSON EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Methods

parseJSON :: Value -> Parser EventId

parseJSONList :: Value -> Parser [EventId]

ToJSONKey EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Methods

toJSONKey :: ToJSONKeyFunction EventId

toJSONKeyList :: ToJSONKeyFunction [EventId]

ToJSON EventId Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Methods

toJSON :: EventId -> Value

toEncoding :: EventId -> Encoding

toJSONList :: [EventId] -> Value

toEncodingList :: [EventId] -> Encoding

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

Methods

toPrepVal :: EventId -> PrepArg

Cacheable 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 #

Constructors

WebhookRequest 

Fields

Instances

Instances details
ToJSON WebhookRequest Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Methods

toJSON :: WebhookRequest -> Value

toEncoding :: WebhookRequest -> Encoding

toJSONList :: [WebhookRequest] -> Value

toEncodingList :: [WebhookRequest] -> Encoding

data WebhookResponse Source #

Instances

Instances details
ToJSON WebhookResponse Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Methods

toJSON :: WebhookResponse -> Value

toEncoding :: WebhookResponse -> Encoding

toJSONList :: [WebhookResponse] -> Value

toEncodingList :: [WebhookResponse] -> Encoding

newtype ClientError Source #

Constructors

ClientError 

Instances

Instances details
ToJSON ClientError Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Methods

toJSON :: ClientError -> Value

toEncoding :: ClientError -> Encoding

toJSONList :: [ClientError] -> Value

toEncodingList :: [ClientError] -> Encoding

data Response (a :: TriggerTypes) Source #

Instances

Instances details
ToJSON (Response 'EventType) Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Methods

toJSON :: Response 'EventType -> Value

toEncoding :: Response 'EventType -> Encoding

toJSONList :: [Response 'EventType] -> Value

toEncodingList :: [Response 'EventType] -> Encoding

ToJSON (Response 'ScheduledType) Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

newtype PGTextArray Source #

PGTextArray is only used for PG array encoding

Constructors

PGTextArray 

Fields

Instances

Instances details
Eq PGTextArray Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Show PGTextArray Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

ToPrepArg PGTextArray Source # 
Instance details

Defined in Hasura.RQL.Types.Eventing

Methods

toPrepVal :: PGTextArray -> PrepArg

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 #