{"repo":"deptyped/prisma-extension-pagination","free":true,"listed":false,"github":"https://github.com/deptyped/prisma-extension-pagination","clone":"git clone https://github.com/deptyped/prisma-extension-pagination.git","description":"Prisma Client extension for pagination","language":"TypeScript","stars":283,"topics":["nodejs","orm","prisma","prisma-client","prisma-extension","typescript","pagination"],"license":"MIT","category":"databases-storage","readme_excerpt":"Prisma Pagination Extension Introduction Prisma Client extension for pagination. Note Breaking change in 0.5.0 Features - Page number pagination - Cursor-based pagination - Fully tested Installation Install extension to all models Install extension on some models Change default settings When using the extension on some models, you need to use createPaginator function to set the default values: Usage Page number pagination Page number pagination uses limit to select a limited range and page to load a specific page of results. - Load first page - Load specific page - Calculate page count Load first page Load specific page Calculate page count Cursor-based pagination Cursor-based pagination uses limit to select a limited range and before or after to return a set of results before or after a given cursor. - Load first records - Load next page - Load previous page - Custom cursor serialization - Load all results Load first records Load next page Load previous page Custom cursor serialization Load all results Sometimes it's useful to return all results, if you need to do that, you can pass limit: null . License This project is licensed under the terms of the MIT license.","default_branch":null,"files":null,"tree":[],"storefront":"/r/deptyped","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/deptyped/prisma-extension-pagination/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}