UNPKG

@stoqey/sofa

Version:
20 lines (19 loc) 451 B
export interface PaginationArgs { bucketName: string; select?: any[] | string; where: any; page: number; limit: number; orderBy?: any; } /** * Common pagination * where = { where: { owner: { $eq: "stoqey" }, _type: { $eq: "Trade" } }, }, page = 0, limit = 10, orderBy = { createdAt: "DESC" }, * @param args PaginationArgs */ export declare const Pagination: (args: PaginationArgs) => Promise<any[]>;