![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
paginate-prisma
Advanced tools
[![Maintainability](https://api.codeclimate.com/v1/badges/6b08ca1cc22333d5e1be/maintainability)](https://codeclimate.com/github/qlaffont/paginate-prisma/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/6b08ca1cc22333d5e1be/test_cov
A TS plugin wrapping pagination for Prisma ORM. Old Owner: @flexper
pnpm i paginate-prisma
import { paginate, PAGINATION_ORDER } from 'paginate-prisma';
const prisma = new PrismaClient();
await paginate(prisma.user)(
{},
{
sort: {
field: 'tokens._count',
order: PAGINATION_ORDER.ASC,
},
}
);
For type-graphql integration, check example/type.ts
Options
Field Name | Type | Description |
---|---|---|
prismaModel | Prisma Model | Prisma model/table/entity to use |
sortingOptions | PaginationOptions | Options to use for pagination (Page, sorting, etc) |
additionalFindMany | Prisma FindManyArgument | Other params in findMany as include, cursor, etc |
Return Promise<PaginationResult & {data: T[]}>
Field Name | Type | Description |
---|---|---|
data | T[] | Paginated Data |
page | number | Current page |
pages | number | Total number of pages |
limit | number | Number of row to be returned |
items | number | Total number of items |
To test this package, you need to run a PostgresSQL server :
docker-compose up -d
chmod -R 777 docker
pnpm prisma migrate deploy
pnpm test
This package use TSdx. Please check documentation to update this package.
FAQs
[![Maintainability](https://api.codeclimate.com/v1/badges/6b08ca1cc22333d5e1be/maintainability)](https://codeclimate.com/github/qlaffont/paginate-prisma/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/6b08ca1cc22333d5e1be/test_cov
The npm package paginate-prisma receives a total of 40 weekly downloads. As such, paginate-prisma popularity was classified as not popular.
We found that paginate-prisma demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.