Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Paginator

Index

Constructors

Properties

Constructors

constructor

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[] }> = paginate

Type 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, {}, {}, {}>

        Mongoose model

      • skip: number = 0
      • limit: number = 10
      • Optional start_key: startKeyDto[]
      • Optional sort_field: string
      • Optional sort_order: number
      • Optional filter: filterDto[]
      • Optional projection: projectionDto[]

      Returns Promise<{ docs: any; next_key: any[] }>

Generated using TypeDoc