Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module defines the schema aspect of the default implementation of aggregation predicates.
Synopsis
- defaultAggregationPredicatesParser :: forall b r m n. (MonadBuildSchemaBase r m n, BackendSchema b, AggregationPredicatesSchema b) => [FunctionSignature b] -> SourceInfo b -> TableInfo b -> 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
- | Arguments (NonEmpty (ArgumentSignature b))
- data ArgumentSignature (b :: BackendType) = ArgumentSignature {
- argType :: ScalarType b
- argName :: Name
Documentation
defaultAggregationPredicatesParser :: forall b r m n. (MonadBuildSchemaBase r m n, BackendSchema b, AggregationPredicatesSchema b) => [FunctionSignature b] -> SourceInfo b -> TableInfo b -> 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 | |
|