UNPKG

@conpago/mongo-cursor-pagination

Version:

Make it easy to return cursor-paginated results from a Mongo collection

6 lines (5 loc) 474 B
import { Collection } from "mongodb"; import { AggregateInputParams, AggregateParams, QueryInputParams, QueryInputParamsMulti, QueryParams } from "../types"; declare const _default: (collection: Collection | any, params: QueryInputParams | AggregateInputParams) => Promise<QueryParams | AggregateParams>; export default _default; export declare function sanitizeMultiParamsMutate(collection: Collection | any, params: QueryInputParamsMulti): Promise<QueryInputParamsMulti>;