Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module defines the schema aspect of the default implementation of aggregation predicates.
Synopsis
- defaultAggregationPredicatesParser :: forall b r m n. (MonadBuildSchema b r m n, AggregationPredicatesSchema b) => [FunctionSignature b] -> TableInfo b -> SchemaT r m (Maybe (InputFieldsParser n [AggregationPredicatesImplementation b (UnpreparedValue b)]))
- data FunctionSignature (b :: BackendType) = FunctionSignature {
- fnName :: Text
- fnGQLName :: Name
- fnArguments :: ArgumentsSignature b
- fnReturnType :: ScalarType b
- data ArgumentsSignature (b :: BackendType)
- = ArgumentsStar
- | SingleArgument (ScalarType b)
- | Arguments (NonEmpty (ArgumentSignature b))
- data ArgumentSignature (b :: BackendType) = ArgumentSignature {
- argType :: ScalarType b
- argName :: Name
Documentation
defaultAggregationPredicatesParser :: forall b r m n. (MonadBuildSchema b r m n, AggregationPredicatesSchema b) => [FunctionSignature b] -> TableInfo b -> SchemaT r m (Maybe (InputFieldsParser n [AggregationPredicatesImplementation b (UnpreparedValue b)])) Source #
This function is meant to serve as the default schema for Aggregation
Predicates represented in the IR by the type
AggregationPredicates
.
data FunctionSignature (b :: BackendType) Source #
FunctionSignature | |
|
data ArgumentsSignature (b :: BackendType) Source #
data ArgumentSignature (b :: BackendType) Source #
ArgumentSignature | |
|