@stoqey/sofa
Version:
Couchbase utilities
18 lines (17 loc) • 401 B
TypeScript
export interface CustomQueryArgs {
query: any;
limit: number;
params: any;
}
export interface CustomQueryPagination {
hasNext: boolean;
params: any;
}
/**
* Common pagination
* query,
bucketName = "",
select = ["id", "owner"] || "*"
* @param args PaginationArgs
*/
export declare const CustomQuery: <T>(args: CustomQueryArgs) => Promise<[T[], CustomQueryPagination]>;