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

Hasura.Backends.Postgres.Types.ComputedField

Description

Postgres types related to computed fields

Synopsis

Documentation

data ComputedFieldDefinition Source #

Instances

Instances details
FromJSON ComputedFieldDefinition Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

ToJSON ComputedFieldDefinition Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

HasCodec ComputedFieldDefinition Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Generic ComputedFieldDefinition Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Associated Types

type Rep ComputedFieldDefinition :: Type -> Type #

Show ComputedFieldDefinition Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

NFData ComputedFieldDefinition Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Methods

rnf :: ComputedFieldDefinition -> () #

Eq ComputedFieldDefinition Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Hashable ComputedFieldDefinition Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

type Rep ComputedFieldDefinition Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

type Rep ComputedFieldDefinition = D1 ('MetaData "ComputedFieldDefinition" "Hasura.Backends.Postgres.Types.ComputedField" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ComputedFieldDefinition" 'PrefixI 'True) (S1 ('MetaSel ('Just "_cfdFunction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 QualifiedFunction) :*: (S1 ('MetaSel ('Just "_cfdTableArgument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FunctionArgName)) :*: S1 ('MetaSel ('Just "_cfdSessionArgument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FunctionArgName)))))

data FunctionTableArgument Source #

The function table argument is either the very first argument or the named argument with an index. The index is 0 if the named argument is the first.

Constructors

FTAFirst 
FTANamed 

Fields

Instances

Instances details
ToJSON FunctionTableArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Generic FunctionTableArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Associated Types

type Rep FunctionTableArgument :: Type -> Type #

Show FunctionTableArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

NFData FunctionTableArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Methods

rnf :: FunctionTableArgument -> () #

Eq FunctionTableArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Ord FunctionTableArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Hashable FunctionTableArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

type Rep FunctionTableArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

type Rep FunctionTableArgument = D1 ('MetaData "FunctionTableArgument" "Hasura.Backends.Postgres.Types.ComputedField" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "FTAFirst" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FTANamed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FunctionArgName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

data FunctionSessionArgument Source #

The session argument, which passes Hasura session variables to a SQL function as a JSON object.

Constructors

FunctionSessionArgument 

Fields

Instances

Instances details
ToJSON FunctionSessionArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Generic FunctionSessionArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Associated Types

type Rep FunctionSessionArgument :: Type -> Type #

Show FunctionSessionArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

NFData FunctionSessionArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Methods

rnf :: FunctionSessionArgument -> () #

Eq FunctionSessionArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Ord FunctionSessionArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Hashable FunctionSessionArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

type Rep FunctionSessionArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

type Rep FunctionSessionArgument = D1 ('MetaData "FunctionSessionArgument" "Hasura.Backends.Postgres.Types.ComputedField" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "FunctionSessionArgument" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FunctionArgName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

data ComputedFieldImplicitArguments Source #

Instances

Instances details
ToJSON ComputedFieldImplicitArguments Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Generic ComputedFieldImplicitArguments Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Associated Types

type Rep ComputedFieldImplicitArguments :: Type -> Type #

Show ComputedFieldImplicitArguments Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

NFData ComputedFieldImplicitArguments Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Eq ComputedFieldImplicitArguments Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Ord ComputedFieldImplicitArguments Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Hashable ComputedFieldImplicitArguments Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

type Rep ComputedFieldImplicitArguments Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

type Rep ComputedFieldImplicitArguments = D1 ('MetaData "ComputedFieldImplicitArguments" "Hasura.Backends.Postgres.Types.ComputedField" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ComputedFieldImplicitArguments" 'PrefixI 'True) (S1 ('MetaSel ('Just "_cffaTableArgument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FunctionTableArgument) :*: S1 ('MetaSel ('Just "_cffaSessionArgument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FunctionSessionArgument))))

data ComputedFieldReturn Source #

Instances

Instances details
ToJSON ComputedFieldReturn Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Generic ComputedFieldReturn Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Associated Types

type Rep ComputedFieldReturn :: Type -> Type #

Show ComputedFieldReturn Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

NFData ComputedFieldReturn Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Methods

rnf :: ComputedFieldReturn -> () #

Eq ComputedFieldReturn Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Ord ComputedFieldReturn Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Hashable ComputedFieldReturn Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

type Rep ComputedFieldReturn Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

type Rep ComputedFieldReturn = D1 ('MetaData "ComputedFieldReturn" "Hasura.Backends.Postgres.Types.ComputedField" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "CFRScalar" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PGScalarType)) :+: C1 ('MetaCons "CFRSetofTable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 QualifiedTable)))