Properties
paginate
paginate
: (model
: Model<any, {}, {}, {}>, skip
?: number, limit
?: number, start_key
?: startKeyDto[], sort_field
?: string, sort_order
?: number, filter
?: filterDto[], projection
?: projectionDto[]) => Promise<{ docs
: any; next_key
: any[] }> = paginateType declaration
- (model: Model<any, {}, {}, {}>, skip?: number, limit?: number, start_key?: startKeyDto[], sort_field?: string, sort_order?: number, filter?: filterDto[], projection?: projectionDto[]): Promise<{ docs: any; next_key: any[] }>
Parameters
model: Model<any, {}, {}, {}>
skip: number = 0
limit: number = 10
Optional sort_field: string
Optional sort_order: number
Optional filter: filterDto[]
Returns Promise<{ docs: any; next_key: any[] }>
Mongoose model