mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
support beforeCursor/prevCursor
This commit is contained in:
@@ -163,7 +163,8 @@ export class UserRepo {
|
||||
|
||||
return executeWithCursorPagination(query, {
|
||||
perPage: pagination.limit,
|
||||
after: pagination.cursor,
|
||||
cursor: pagination.cursor,
|
||||
beforeCursor: pagination.beforeCursor,
|
||||
fields: [{ expression: 'id', direction: 'asc' }],
|
||||
parseCursor: (cursor) => ({ id: cursor.id }),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user