Skip to content

Commit 1241ec5

Browse files
committed
BREAKING: use new backend syntax for limits
1 parent 853adbf commit 1241ec5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/app/datasource.service.ts

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

0 commit comments

Comments
 (0)