perspectives: support nosql other than mongo

This commit is contained in:
SPRINX0\prochazka
2024-08-28 15:49:32 +02:00
parent 73ec42a9c8
commit d243af323e
3 changed files with 14 additions and 5 deletions

View File

@@ -123,7 +123,7 @@ export class PerspectiveDataLoader {
groupByColumns: bindingColumns,
aggregateColumns: [
{
alias: 'acount',
alias: 'pergrpsize',
aggregateFunction: 'count',
},
],
@@ -156,8 +156,8 @@ export class PerspectiveDataLoader {
if (response.errorMessage) return response;
return response.rows.map(row => ({
...row._id,
_perspective_group_size_: parseInt(row.count),
...row,
_perspective_group_size_: parseInt(row.pergrpsize),
}));
}