-
-
Notifications
You must be signed in to change notification settings - Fork 579
RequestQueryBuilder.create() sort option is not work. #848
Copy link
Copy link
Open
Description
Bug Report
let createQueryParams = {
search: {
$and: [
$CONT('name', searchForm.name),
encode?.encode ? $EQUAL('encode', encode?.encode) : $CONT('encode', searchForm.encode),
]
},
sort: [{ field: "encode", order: "ASC" }],
page: currentPage.value,
limit: pageSize.value,
resetCache: true,
};
const query = '?' + RequestQueryBuilder.create(createQueryParams).query();
Current behavior
the sort/order query option was not work. the response data is not sorted.if I set Crud decorator on controllers,the response data is sorted by 'encode' field.
Input Code
const your = (code) => here;Expected behavior
Possible Solution
Environment
Package version: X.Y.Z
For Tooling issues:
- Node version: XX
- Platform:
- Database
Others:
Repository with minimal reproduction
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels