We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PropertyOf<T>
aggregate.base()
1 parent 0a2ade0 commit c2bba8fCopy full SHA for c2bba8f
src/collections/aggregate/index.ts
@@ -450,11 +450,7 @@ class AggregateManager<T> implements Aggregate<T> {
450
return new Aggregator(this.connection);
451
}
452
453
- base(
454
- metrics?: PropertiesMetrics<T>,
455
- filters?: FilterValue,
456
- groupBy?: (keyof T & string) | GroupByAggregate<T> | string
457
- ) {
+ base(metrics?: PropertiesMetrics<T>, filters?: FilterValue, groupBy?: PropertyOf<T> | GroupByAggregate<T>) {
458
let fields = 'meta { count }';
459
let builder = this.query().withClassName(this.name);
460
if (metrics) {
0 commit comments