@xtandard/lib/pagination/prisma
Prisma adapter for pagination keysets (no driver dependency).
import { … } from "@xtandard/lib/pagination/prisma";Functions
Section titled “Functions”| Name | Summary |
|---|---|
assertPrismaField |
Validate a Prisma scalar field name used by the keyset adapter: a single identifier ([a-zA-Z_][a-zA-Z0-9_]*), no dots or relation paths. toPrismaKeyset runs every mapped field through it. Field mappings must be server-owned and should never come from request data. |
toPrismaKeyset |
Create a Prisma adapter for portable keyset predicates and ordering. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
PrismaKeyset |
|
PrismaKeysetFields |
|
PrismaKeysetFilter |
|
PrismaKeysetOrderBy |
|
PrismaKeysetSortOrder |
|
PrismaKeysetWhere |