[groupBy] Order by within records (#15404)
Closes https://github.com/twentyhq/core-team-issues/issues/1727 <img width="1415" height="625" alt="image" src="https://github.com/user-attachments/assets/cd132582-4a95-463c-8946-87b77670e023" />
This commit is contained in:
+1
@@ -59,6 +59,7 @@ export class GroupByResolverFactory
|
||||
totalCount: Number(group.totalCount ?? 0),
|
||||
hasNextPage: false,
|
||||
hasPreviousPage: false,
|
||||
order: args.orderByForRecords ?? [],
|
||||
});
|
||||
|
||||
const { _records, ...groupWithoutRecords } = group;
|
||||
|
||||
+1
@@ -63,6 +63,7 @@ export interface GroupByResolverArgs<Filter = ObjectRecordFilter> {
|
||||
groupBy: ObjectRecordGroupBy;
|
||||
viewId?: string;
|
||||
orderBy?: OrderByWithGroupBy;
|
||||
orderByForRecords?: ObjectRecordOrderBy;
|
||||
}
|
||||
|
||||
export interface UpdateOneResolverArgs<
|
||||
|
||||
Reference in New Issue
Block a user