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

Hasura.Backends.Postgres.Types.ComputedField

Description

Postgres types related to computed fields

Synopsis

Documentation

data ComputedFieldDefinition Source #

Instances

Instances details
Eq ComputedFieldDefinition Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

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

NFData ComputedFieldDefinition Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Methods

rnf :: ComputedFieldDefinition -> () #

Hashable ComputedFieldDefinition Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

FromJSON ComputedFieldDefinition Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Methods

parseJSON :: Value -> Parser ComputedFieldDefinition

parseJSONList :: Value -> Parser [ComputedFieldDefinition]

ToJSON ComputedFieldDefinition Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Cacheable 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
Eq FunctionTableArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

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

NFData FunctionTableArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Methods

rnf :: FunctionTableArgument -> () #

Hashable FunctionTableArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

ToJSON FunctionTableArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Cacheable 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
Eq FunctionSessionArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

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

NFData FunctionSessionArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Methods

rnf :: FunctionSessionArgument -> () #

Hashable FunctionSessionArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

ToJSON FunctionSessionArgument Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Cacheable 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
Eq ComputedFieldImplicitArguments Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

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

NFData ComputedFieldImplicitArguments Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Hashable ComputedFieldImplicitArguments Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

ToJSON ComputedFieldImplicitArguments Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Cacheable 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
Eq ComputedFieldReturn Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

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

NFData ComputedFieldReturn Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

Methods

rnf :: ComputedFieldReturn -> () #

Hashable ComputedFieldReturn Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

ToJSON ComputedFieldReturn Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.ComputedField

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