| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Hasura.RQL.Types.Eventing
Description
This module contains types which are common to event triggers and scheduled triggers.
Synopsis
- newtype EventId = EventId {}
- data TriggerTypes
- data WebhookRequest = WebhookRequest {
- _rqPayload :: Value
- _rqHeaders :: [HeaderConf]
- _rqVersion :: Text
- data WebhookResponse = WebhookResponse {}
- newtype ClientError = ClientError {}
- data Response (a :: TriggerTypes)
- type InvocationVersion = Text
- invocationVersionET :: InvocationVersion
- invocationVersionST :: InvocationVersion
- data Invocation (a :: TriggerTypes) = Invocation {}
- newtype PGTextArray = PGTextArray {
- unPGTextArray :: [Text]
- data OpVar
Documentation
Instances
| FromJSON EventId Source # | |
| ToJSON EventId Source # | |
| ToJSONKey EventId Source # | |
Defined in Hasura.RQL.Types.Eventing Methods | |
| Generic EventId Source # | |
| Show EventId Source # | |
| NFData EventId Source # | |
Defined in Hasura.RQL.Types.Eventing | |
| Eq EventId Source # | |
| Ord EventId Source # | |
Defined in Hasura.RQL.Types.Eventing | |
| Hashable EventId Source # | |
| ToTxt EventId Source # | |
| FromCol EventId Source # | |
Defined in Hasura.RQL.Types.Eventing | |
| ToPrepArg EventId Source # | |
| type Rep EventId Source # | |
Defined in Hasura.RQL.Types.Eventing | |
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
data WebhookResponse Source #
Constructors
| WebhookResponse | |
Fields
| |
Instances
newtype ClientError Source #
Constructors
| ClientError | |
Fields | |
Instances
| ToJSON ClientError Source # | |
Defined in Hasura.RQL.Types.Eventing Methods toJSON :: ClientError -> Value Source # toEncoding :: ClientError -> Encoding Source # toJSONList :: [ClientError] -> Value Source # toEncodingList :: [ClientError] -> Encoding Source # | |
| Generic ClientError Source # | |
Defined in Hasura.RQL.Types.Eventing Associated Types type Rep ClientError :: Type -> Type # | |
| type Rep ClientError Source # | |
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))) | |
data Response (a :: TriggerTypes) Source #
Constructors
| ResponseHTTP WebhookResponse | |
| ResponseError ClientError |
Instances
| ToJSON (Response 'EventType) Source # | |
| ToJSON (Response 'ScheduledType) Source # | |
Defined in Hasura.RQL.Types.Eventing Methods toJSON :: Response 'ScheduledType -> Value Source # toEncoding :: Response 'ScheduledType -> Encoding Source # toJSONList :: [Response 'ScheduledType] -> Value Source # toEncodingList :: [Response 'ScheduledType] -> Encoding Source # | |
type InvocationVersion = Text Source #
data Invocation (a :: TriggerTypes) Source #
Constructors
| Invocation | |
newtype PGTextArray Source #
PGTextArray is only used for PG array encoding
Constructors
| PGTextArray | |
Fields
| |
Instances
| Show PGTextArray Source # | |
Defined in Hasura.RQL.Types.Eventing Methods showsPrec :: Int -> PGTextArray -> ShowS # show :: PGTextArray -> String # showList :: [PGTextArray] -> ShowS # | |
| Eq PGTextArray Source # | |
Defined in Hasura.RQL.Types.Eventing | |
| ToPrepArg PGTextArray Source # | |
Defined in Hasura.RQL.Types.Eventing Methods toPrepVal :: PGTextArray -> PrepArg 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.