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

Hasura.RQL.Types.ComputedField

Description

 
Synopsis

Documentation

data FunctionTrackedAs (b :: BackendType) Source #

Instances

Instances details
Generic (FunctionTrackedAs b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

Associated Types

type Rep (FunctionTrackedAs b) :: Type -> Type #

Backend b => Show (FunctionTrackedAs b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

Backend b => Eq (FunctionTrackedAs b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

type Rep (FunctionTrackedAs b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

data CustomFunctionNames Source #

The function name and input arguments name for the "args" field parser.

function_name(args: args_name)

Instances

Instances details
Generic CustomFunctionNames Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

Associated Types

type Rep CustomFunctionNames :: Type -> Type #

Show CustomFunctionNames Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

Eq CustomFunctionNames Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

type Rep CustomFunctionNames Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

type Rep CustomFunctionNames = D1 ('MetaData "CustomFunctionNames" "Hasura.RQL.Types.ComputedField" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "CustomFunctionNames" 'PrefixI 'True) (S1 ('MetaSel ('Just "cfnFunctionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Name) :*: S1 ('MetaSel ('Just "cfnArgsName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Name)))

data ComputedFieldFunction (b :: BackendType) Source #

Instances

Instances details
Backend b => ToJSON (ComputedFieldFunction b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

Generic (ComputedFieldFunction b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

Associated Types

type Rep (ComputedFieldFunction b) :: Type -> Type #

Backend b => Show (ComputedFieldFunction b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

Backend b => NFData (ComputedFieldFunction b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

Methods

rnf :: ComputedFieldFunction b -> () #

Backend b => Eq (ComputedFieldFunction b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

Backend b => Ord (ComputedFieldFunction b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

Backend b => Hashable (ComputedFieldFunction b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

type Rep (ComputedFieldFunction b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

type Rep (ComputedFieldFunction b) = D1 ('MetaData "ComputedFieldFunction" "Hasura.RQL.Types.ComputedField" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ComputedFieldFunction" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_cffName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (FunctionName b)) :*: S1 ('MetaSel ('Just "_cffInputArgs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Seq (FunctionArgument b)))) :*: (S1 ('MetaSel ('Just "_cffComputedFieldImplicitArgs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (ComputedFieldImplicitArguments b)) :*: S1 ('MetaSel ('Just "_cffDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PGDescription)))))

data ComputedFieldInfo (b :: BackendType) Source #

Instances

Instances details
Backend b => ToJSON (ComputedFieldInfo b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

Generic (ComputedFieldInfo b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

Associated Types

type Rep (ComputedFieldInfo b) :: Type -> Type #

Backend b => Show (ComputedFieldInfo b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

Backend b => NFData (ComputedFieldInfo b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

Methods

rnf :: ComputedFieldInfo b -> () #

Backend b => Eq (ComputedFieldInfo b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

Backend b => Ord (ComputedFieldInfo b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

Backend b => Hashable (ComputedFieldInfo b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

type Rep (ComputedFieldInfo b) Source # 
Instance details

Defined in Hasura.RQL.Types.ComputedField

type Rep (ComputedFieldInfo b) = D1 ('MetaData "ComputedFieldInfo" "Hasura.RQL.Types.ComputedField" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ComputedFieldInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_cfiXComputedFieldInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (XComputedField b)) :*: S1 ('MetaSel ('Just "_cfiName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ComputedFieldName)) :*: (S1 ('MetaSel ('Just "_cfiFunction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (ComputedFieldFunction b)) :*: (S1 ('MetaSel ('Just "_cfiReturnType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (ComputedFieldReturn b)) :*: S1 ('MetaSel ('Just "_cfiDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

onlyNumComputedFields :: forall b. Backend b => [ComputedFieldInfo b] -> [ComputedFieldInfo b] Source #

Return all the computed fields in the given list that have numeric types.

isNumComputedField :: forall b. Backend b => ComputedFieldInfo b -> Bool Source #

Check whether a computed field has a numeric type.

onlyComparableComputedFields :: forall b. Backend b => [ComputedFieldInfo b] -> [ComputedFieldInfo b] Source #

Return all the computed fields in the given list that have numeric types.

isComparableComputedField :: forall b. Backend b => ComputedFieldInfo b -> Bool Source #

Check whether a computed field has a numeric type.

removeComputedFieldsReturningExistingTable :: forall backend. Backend backend => [ComputedFieldInfo backend] -> [ComputedFieldInfo backend] Source #

Filter computed fields not returning rows of existing table