graphql-engine/server/src-test/Hasura/Backends/DataConnector/API/V0
David Overton 9921823915 GDC-189 custom aggregations
>

## Description
->

This PR allows DC agents to define custom aggregate functions for their scalar types.

### Related Issues
->

GDC-189

### Solution and Design
>

We added a new property `aggregate_functions` to the scalar types capabilities. This allows the agent author to specify a set of aggregate functions supported by each scalar type, along with the function's result type.

During GraphQL schema generation, the custom aggregate functions are available via a new method `getCustomAggregateOperators` on the `Backend` type class.
Custom functions are merged with the builtin aggregate functions when building GraphQL schemas for table aggregate fields and for `order_by` operators on array relations.

### Steps to test and verify
>

• Codec tests for aggregate function capabilities have been added to the unit tests.
• Some custom aggregate operators have been added to the reference agent and are used in a new test in `api-tests`.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6199
GitOrigin-RevId: e9c0d1617af93847c1493671fdbb794f573bde0c
2022-10-27 00:44:06 +00:00
..
AggregateSpec.hs GDC-189 custom aggregations 2022-10-27 00:44:06 +00:00
CapabilitiesSpec.hs GDC-189 custom aggregations 2022-10-27 00:44:06 +00:00
ColumnSpec.hs Add column scalar type information Data Connector query API request [GDC-493] 2022-10-20 03:24:53 +00:00
ConfigSchemaSpec.hs Gardening: Clean up Data Connector API types 2022-09-21 05:13:03 +00:00
ExpressionSpec.hs Add column scalar type information Data Connector query API request [GDC-493] 2022-10-20 03:24:53 +00:00
OrderBySpec.hs GDC-189 custom aggregations 2022-10-27 00:44:06 +00:00
QuerySpec.hs GDC-189 custom aggregations 2022-10-27 00:44:06 +00:00
RelationshipsSpec.hs Gdc capabilities scalar types - GDW-87 2022-09-06 04:26:03 +00:00
ScalarSpec.hs Add column scalar type information Data Connector query API request [GDC-493] 2022-10-20 03:24:53 +00:00
SchemaSpec.hs Gdc capabilities scalar types - GDW-87 2022-09-06 04:26:03 +00:00
TableSpec.hs Break down Data Connector agent schema tests into finer grained, more accurate, tests [GDC-479] 2022-10-10 02:25:09 +00:00