0.0.6 • Published 3 years ago
@edukinara/prismaog v0.0.6
POG
Installation
Yarn
yarn add @edukinara/prismaog
Usage
Use Module
// @ts-ignore
import { prismaOffsetPagination } from '@edukinara/prismaog';
...
const result = prismaOffsetPagination({
model: User,
cursor: <cursor>,
size: 5,
buttonNum: 7,
orderBy: 'id',
orderDirection: 'desc',
where: {
email: {
contains: 'smallbee',
},
},
});