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

Hasura.Backends.Postgres.Schema.Select

Synopsis

Documentation

selectFunction Source #

Arguments

:: forall r m n pgKind. (MonadBuildSchema ('Postgres pgKind) r m n, BackendTableSelectSchema ('Postgres pgKind)) 
=> MkRootFieldName 
-> FunctionInfo ('Postgres pgKind)

SQL function info

-> Maybe Description

field description, if any

-> SchemaT r m (Maybe (FieldParser n (SelectExp ('Postgres pgKind)))) 

User-defined function (AKA custom function)

selectFunctionAggregate Source #

Arguments

:: forall r m n pgKind. (MonadBuildSchema ('Postgres pgKind) r m n, BackendTableSelectSchema ('Postgres pgKind)) 
=> MkRootFieldName 
-> FunctionInfo ('Postgres pgKind)

SQL function info

-> Maybe Description

field description, if any

-> SchemaT r m (Maybe (FieldParser n (AggSelectExp ('Postgres pgKind)))) 

selectFunctionConnection Source #

Arguments

:: forall pgKind r m n. (MonadBuildSchema ('Postgres pgKind) r m n, AggregationPredicatesSchema ('Postgres pgKind), BackendTableSelectSchema ('Postgres pgKind)) 
=> MkRootFieldName 
-> FunctionInfo ('Postgres pgKind)

SQL function info

-> Maybe Description

field description, if any

-> PrimaryKeyColumns ('Postgres pgKind)

primary key columns of the target table

-> SchemaT r m (Maybe (FieldParser n (ConnectionSelectExp ('Postgres pgKind)))) 

computedFieldPG :: forall pgKind r m n. (MonadBuildSchema ('Postgres pgKind) r m n, BackendTableSelectSchema ('Postgres pgKind)) => ComputedFieldInfo ('Postgres pgKind) -> TableName ('Postgres pgKind) -> TableInfo ('Postgres pgKind) -> SchemaT r m (Maybe (FieldParser n (AnnotatedField ('Postgres pgKind)))) Source #

Computed field parser