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

Hasura.Backends.Postgres.Execute.ConnectionTemplate

Synopsis

Documentation

data PrimaryTag Source #

This connection tag represents primary database connection

Constructors

PrimaryTag 

Instances

Instances details
FromJSON PrimaryTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

ToJSON PrimaryTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Generic PrimaryTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Associated Types

type Rep PrimaryTag :: Type -> Type #

Show PrimaryTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

NFData PrimaryTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Methods

rnf :: PrimaryTag -> () #

Eq PrimaryTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Hashable PrimaryTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

type Rep PrimaryTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

type Rep PrimaryTag = D1 ('MetaData "PrimaryTag" "Hasura.Backends.Postgres.Execute.ConnectionTemplate" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "PrimaryTag" 'PrefixI 'False) (U1 :: Type -> Type))

data DefaultTag Source #

This connection tag represents default behaviour of database connections.

For example, if read replica is set, then it will redirect GQL queries to read replicas and mutations to the primary connection

Constructors

DefaultTag 

Instances

Instances details
FromJSON DefaultTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

ToJSON DefaultTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Generic DefaultTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Associated Types

type Rep DefaultTag :: Type -> Type #

Show DefaultTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

NFData DefaultTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Methods

rnf :: DefaultTag -> () #

Eq DefaultTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Hashable DefaultTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

type Rep DefaultTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

type Rep DefaultTag = D1 ('MetaData "DefaultTag" "Hasura.Backends.Postgres.Execute.ConnectionTemplate" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "DefaultTag" 'PrefixI 'False) (U1 :: Type -> Type))

data ReadReplicasTag Source #

This connection tag represents read replica database connection

Constructors

ReadReplicasTag 

Instances

Instances details
FromJSON ReadReplicasTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

ToJSON ReadReplicasTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Generic ReadReplicasTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Associated Types

type Rep ReadReplicasTag :: Type -> Type #

Show ReadReplicasTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

NFData ReadReplicasTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Methods

rnf :: ReadReplicasTag -> () #

Eq ReadReplicasTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Hashable ReadReplicasTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

type Rep ReadReplicasTag Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

type Rep ReadReplicasTag = D1 ('MetaData "ReadReplicasTag" "Hasura.Backends.Postgres.Execute.ConnectionTemplate" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ReadReplicasTag" 'PrefixI 'False) (U1 :: Type -> Type))

data ConnectionSetMemberTemplateContext Source #

Data type for single member in connection_set for connection template context

Constructors

ConnectionSetMemberTemplateContext 

Fields

Instances

Instances details
FromJSON ConnectionSetMemberTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

ToJSON ConnectionSetMemberTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Generic ConnectionSetMemberTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Associated Types

type Rep ConnectionSetMemberTemplateContext :: Type -> Type #

Show ConnectionSetMemberTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

NFData ConnectionSetMemberTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Eq ConnectionSetMemberTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Hashable ConnectionSetMemberTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

type Rep ConnectionSetMemberTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

data PostgresResolvedConnectionTemplate Source #

Outcome of the connection template resolution

Instances

Instances details
FromJSON PostgresResolvedConnectionTemplate Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

ToJSON PostgresResolvedConnectionTemplate Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Generic PostgresResolvedConnectionTemplate Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Associated Types

type Rep PostgresResolvedConnectionTemplate :: Type -> Type #

Show PostgresResolvedConnectionTemplate Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

NFData PostgresResolvedConnectionTemplate Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Eq PostgresResolvedConnectionTemplate Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Hashable PostgresResolvedConnectionTemplate Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

type Rep PostgresResolvedConnectionTemplate Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

data RequestContextHeaders Source #

Headers information for the connection template context

Instances

Instances details
FromJSON RequestContextHeaders Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

ToJSON RequestContextHeaders Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Generic RequestContextHeaders Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Associated Types

type Rep RequestContextHeaders :: Type -> Type #

Show RequestContextHeaders Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

type Rep RequestContextHeaders Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

type Rep RequestContextHeaders = D1 ('MetaData "RequestContextHeaders" "Hasura.Backends.Postgres.Execute.ConnectionTemplate" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RequestContextHeaders" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Text))))

data ConnectionSetTemplateContext Source #

Data type for connection_set for connection template context

Instances

Instances details
FromJSON ConnectionSetTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

ToJSON ConnectionSetTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Monoid ConnectionSetTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Semigroup ConnectionSetTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Show ConnectionSetTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

data QueryContext Source #

Query information (operation name and operation type) for connection template context

Instances

Instances details
FromJSON QueryContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

ToJSON QueryContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Generic QueryContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Associated Types

type Rep QueryContext :: Type -> Type #

Show QueryContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

type Rep QueryContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

type Rep QueryContext = D1 ('MetaData "QueryContext" "Hasura.Backends.Postgres.Execute.ConnectionTemplate" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "QueryContext" 'PrefixI 'True) (S1 ('MetaSel ('Just "_qcOperationName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Name)) :*: S1 ('MetaSel ('Just "_qcOperationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 QueryOperationType)))

data RequestContext Source #

Request information for connection template context

Instances

Instances details
FromJSON RequestContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

ToJSON RequestContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Generic RequestContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Associated Types

type Rep RequestContext :: Type -> Type #

Show RequestContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

type Rep RequestContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

type Rep RequestContext = D1 ('MetaData "RequestContext" "Hasura.Backends.Postgres.Execute.ConnectionTemplate" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RequestContext" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rcHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RequestContextHeaders) :*: (S1 ('MetaSel ('Just "_rcSession") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SessionVariables) :*: S1 ('MetaSel ('Just "_rcQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe QueryContext)))))

data PostgresConnectionTemplateContext Source #

The complete connection template context used for resolving connection template

Instances

Instances details
FromJSON PostgresConnectionTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

ToJSON PostgresConnectionTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Generic PostgresConnectionTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

Associated Types

type Rep PostgresConnectionTemplateContext :: Type -> Type #

Show PostgresConnectionTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

type Rep PostgresConnectionTemplateContext Source # 
Instance details

Defined in Hasura.Backends.Postgres.Execute.ConnectionTemplate

type Rep PostgresConnectionTemplateContext = D1 ('MetaData "PostgresConnectionTemplateContext" "Hasura.Backends.Postgres.Execute.ConnectionTemplate" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "PostgresConnectionTemplateContext" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_pctcRequest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RequestContext) :*: S1 ('MetaSel ('Just "_pctcPrimary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PrimaryTag)) :*: (S1 ('MetaSel ('Just "_pctcReadReplicas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ReadReplicasTag) :*: (S1 ('MetaSel ('Just "_pctcDefault") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DefaultTag) :*: S1 ('MetaSel ('Just "_pctcConnectionSet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ConnectionSetTemplateContext)))))

runKritiEval :: PostgresConnectionTemplateContext -> KritiTemplate -> Either EvalError Value Source #

We should move this to Data.Aeson.Kriti.Functions