graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.Backends.Postgres.Execute.Mutation

Description

Postgres Execute Mutation

Generic combinators for translating and excecuting IR mutation statements. Used by the specific mutation modules, e.g. Insert.

See Execute.

Documentation

data MutateResp (b :: BackendType) a Source #

Instances

Instances details
(Backend b, Eq a) => Eq (MutateResp b a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.Mutation

Methods

(==) :: MutateResp b a -> MutateResp b a -> Bool #

(/=) :: MutateResp b a -> MutateResp b a -> Bool #

(Backend b, Show a) => Show (MutateResp b a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.Mutation

Methods

showsPrec :: Int -> MutateResp b a -> ShowS #

show :: MutateResp b a -> String #

showList :: [MutateResp b a] -> ShowS #

Generic (MutateResp b a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.Mutation

Associated Types

type Rep (MutateResp b a) :: Type -> Type #

Methods

from :: MutateResp b a -> Rep (MutateResp b a) x #

to :: Rep (MutateResp b a) x -> MutateResp b a #

(Backend b, FromJSON a) => FromJSON (MutateResp b a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.Mutation

Methods

parseJSON :: Value -> Parser (MutateResp b a)

parseJSONList :: Value -> Parser [MutateResp b a]

(Backend b, ToJSON a) => ToJSON (MutateResp b a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.Mutation

Methods

toJSON :: MutateResp b a -> Value

toEncoding :: MutateResp b a -> Encoding

toJSONList :: [MutateResp b a] -> Value

toEncodingList :: [MutateResp b a] -> Encoding

type Rep (MutateResp b a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.Mutation

type Rep (MutateResp b a) = D1 ('MetaData "MutateResp" "Hasura.Backends.Postgres.Execute.Mutation" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "MutateResp" 'PrefixI 'True) (S1 ('MetaSel ('Just "_mrAffectedRows") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "_mrReturningColumns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ColumnValues b a])))

executeMutationOutputQuery Source #

Arguments

:: forall pgKind m. (MonadTx m, Backend ('Postgres pgKind), PostgresAnnotatedFieldJSON pgKind, MonadReader QueryTagsComment m) 
=> QualifiedTable 
-> [ColumnInfo ('Postgres pgKind)] 
-> Maybe Int 
-> MutationCTE 
-> MutationOutput ('Postgres pgKind) 
-> StringifyNumbers 
-> Maybe NamingCase 
-> [PrepArg]

Prepared params

-> m EncJSON