Skip to content

Commit 06d5e6a

Browse files
committed
BREAKING: use new backend syntax for limits
1 parent e4f0c4c commit 06d5e6a

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/app/datasource.service.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ export class DatasourceService {
5454
): string {
5555
return this.directMongoAccess
5656
? JSON.stringify({
57-
order: sortColumn + " " + sortDirection,
58-
skip: itemsPerPage * currentPage,
59-
limit: itemsPerPage,
57+
limits: {
58+
skip: itemsPerPage * currentPage,
59+
limit: itemsPerPage,
60+
order: sortColumn + ":" + sortDirection,
61+
},
6062
fields: itemFields,
6163
})
6264
: "(" +

0 commit comments

Comments
 (0)