prisma-extension-pagination
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -24,3 +24,3 @@ "use strict"; | ||
skip: (page - 1) * (limit !== null && limit !== void 0 ? limit : 0), | ||
take: limit, | ||
take: limit === null ? undefined : limit, | ||
})), | ||
@@ -27,0 +27,0 @@ model.count(Object.assign(Object.assign(Object.assign({}, query), helpers_1.resetSelection), helpers_1.resetOrdering)), |
{ | ||
"name": "prisma-extension-pagination", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Prisma Client extension for pagination", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -117,3 +117,3 @@ # Prisma Pagination Extension | ||
```ts | ||
const [users, meta] = prisma.user | ||
const [users, meta] = await prisma.user | ||
.paginate({ | ||
@@ -141,3 +141,3 @@ select: { | ||
```ts | ||
const [users, meta] = prisma.user | ||
const [users, meta] = await prisma.user | ||
.paginate() | ||
@@ -162,3 +162,3 @@ .withPages({ | ||
```ts | ||
const [users, meta] = prisma.user | ||
const [users, meta] = await prisma.user | ||
.paginate() | ||
@@ -197,3 +197,3 @@ .withPages({ | ||
```ts | ||
const [users, meta] = prisma.user | ||
const [users, meta] = await prisma.user | ||
.paginate({ | ||
@@ -220,3 +220,3 @@ select: { | ||
```ts | ||
const [users, meta] = prisma.user | ||
const [users, meta] = await prisma.user | ||
.paginate() | ||
@@ -240,3 +240,3 @@ .withCursor({ | ||
```ts | ||
const [users, meta] = prisma.user | ||
const [users, meta] = await prisma.user | ||
.paginate() | ||
@@ -243,0 +243,0 @@ .withCursor({ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24244