Skip to content

Documentation / @andrew_l/mongo-pagination / QueryPaginatorOptions

Interface: QueryPaginatorOptions

Properties

next?

optional next: null | string | Buffer

The token to start the pagination from, if available.


paginationFields?

optional paginationFields: string[]

An optional list of fields used for building pagination query.


postQuery()?

optional postQuery: (this) => void

A callback function executed after the query is performed.

Parameters

this: QueryPaginator<any>

Returns

void


preQuery()?

optional preQuery: (this) => void

A callback function executed before the query is performed.

Parameters

this: QueryPaginator<any>

Returns

void