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

Hasura.GraphQL.Schema.BoolExp

Synopsis

Documentation

class AggregationPredicatesSchema (b :: BackendType) where Source #

Backends implement this type class to specify the schema of aggregation predicates.

The default implementation results in a parser that does not parse anything.

The scope of this class is local to the function boolExp. In particular, methods in `class BackendSchema` and `type MonadBuildSchema` should *NOT* include this class as a constraint.

boolExp :: forall b r m n. (MonadBuildSchema b r m n, AggregationPredicatesSchema b) => SourceInfo b -> TableInfo b -> m (Parser 'Input n (AnnBoolExp b (UnpreparedValue b))) Source #

input type_bool_exp {
  _or: [type_bool_exp!]
  _and: [type_bool_exp!]
  _not: type_bool_exp
  column: type_comparison_exp
  ...
}

mkBoolOperator Source #

Arguments

:: (MonadParse n, 'Input <: k) 
=> NamingCase

Naming convention for the field

-> DangerouslyCollapseBooleans

shall this be collapsed to True when null is given?

-> GQLNameIdentifier

name of this operator

-> Maybe Description

optional description

-> Parser k n a

parser for the underlying value

-> InputFieldsParser n (Maybe a) 

equalityOperators Source #

Arguments

:: (MonadParse n, 'Input <: k) 
=> NamingCase 
-> DangerouslyCollapseBooleans

shall this be collapsed to True when null is given?

-> Parser k n (UnpreparedValue b)

parser for one column value

-> Parser k n (UnpreparedValue b)

parser for a list of column values

-> [InputFieldsParser n (Maybe (OpExpG b (UnpreparedValue b)))] 

comparisonOperators Source #

Arguments

:: (MonadParse n, 'Input <: k) 
=> NamingCase 
-> DangerouslyCollapseBooleans

shall this be collapsed to True when null is given?

-> Parser k n (UnpreparedValue b)

parser for one column value

-> [InputFieldsParser n (Maybe (OpExpG b (UnpreparedValue b)))]