Add sort section in find records action (#15340)
https://github.com/user-attachments/assets/020f3e97-316b-41db-b95d-7b938a7f82cf
This commit is contained in:
+1
-1
@@ -177,7 +177,7 @@ export class FindRecordsService {
|
||||
withFilterQueryBuilder,
|
||||
orderByWithIdCondition,
|
||||
objectName,
|
||||
false,
|
||||
true,
|
||||
);
|
||||
|
||||
const queryBuilderWithSelect = this.applyRestrictedFieldsToQueryBuilder(
|
||||
|
||||
+5
-1
@@ -1,4 +1,7 @@
|
||||
import { type ObjectRecordFilter } from 'src/engine/api/graphql/workspace-query-builder/interfaces/object-record.interface';
|
||||
import {
|
||||
type ObjectRecordFilter,
|
||||
type ObjectRecordOrderBy,
|
||||
} from 'src/engine/api/graphql/workspace-query-builder/interfaces/object-record.interface';
|
||||
|
||||
import { type RecordCrudExecutionContext } from './execution-context.type';
|
||||
import { type FindRecordsInput } from './record-crud-input.type';
|
||||
@@ -10,5 +13,6 @@ export type FindRecordsParams = FindRecordsInput &
|
||||
| Record<string, unknown>[]
|
||||
| Partial<ObjectRecordFilter>
|
||||
| Partial<ObjectRecordFilter>[];
|
||||
orderBy?: Partial<ObjectRecordOrderBy>;
|
||||
offset?: number;
|
||||
};
|
||||
|
||||
+5
-1
@@ -32,7 +32,11 @@ export type FindRecordsInput = {
|
||||
recordFilters?: any;
|
||||
gqlOperationFilter?: Partial<ObjectRecordFilter>[];
|
||||
};
|
||||
orderBy?: Partial<ObjectRecordOrderBy>;
|
||||
orderBy?: {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
recordSorts?: any;
|
||||
gqlOperationOrderBy?: Partial<ObjectRecordOrderBy>;
|
||||
};
|
||||
limit?: number;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user