typeorm-cursor-pagination
typeorm-cursor-pagination copied to clipboard
Cursor-based pagination works with TypeORM Query Builder.
Running this package with Typescript 4.9 and above results in the following error: ``` node_modules/typeorm-cursor-pagination/lib/Paginator.d.ts:34:42 - error TS2344: Type 'Entity' does not satisfy the constraint 'ObjectLiteral'. 34 paginate(builder: SelectQueryBuilder): Promise;...
example: ` const queryBuilder = this.dataSource .createQueryBuilder(Notification, 'notification') .select('notification.id', 'id') .addSelect('message.title', 'title') .leftJoin('notification.receiver', 'user') .leftJoin('notification.message', 'message') .where('user.did =:did', { did: userDID }); const paginator = buildPaginator({ entity: Notification, paginationKeys: ['id'],...
I'm puzzled. How is this behavior supposed to work? current version: **0.10.1** Here's my API response fetching a table with only 18 items in the table: api/resource?limit=10 ``` { data:...
Hello Benjamin, First I want to thank you for this awesome library it really speeds up the process of pagination and I've been using for some time. I have a...
This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade typeorm from 0.3.6 to 0.3.16. :information_source: Keep your dependencies up-to-date....
I can work on a PR for this feature but do you have any idea on the best way I should go about implementing this?
This PR will add options to include the cursor record in pagination result.
Pagination does not work for composite keys in version 9.x (works in version 6.x) Below are version 9 and version 6 generated code (issuer_id, parent_issuer_id, start_date and source_id are the...
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3. Release notes Sourced from json5's releases. v2.2.3 Fix: [email protected] is now the 'latest' release according to npm instead of v1.0.2. (#299) v2.2.2 Fix: Properties...