mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
6 lines
192 B
TypeScript
6 lines
192 B
TypeScript
import { Query } from "appwrite";
|
|
|
|
export const getAppwritePagination = (current: number, pageSize: number) => {
|
|
return [Query.offset((current - 1) * pageSize), Query.limit(pageSize)];
|
|
};
|