Search
Preparing search index...
The search index is not available
nestjs-keyset-paginator - v3.0.4
Options
All
Public
Public/Protected
All
Inherited
Menu
nestjs-keyset-paginator - v3.0.4
Index
References
default
Enumerations
ENUM_
FILTER_
OPERATOR_
TYPE
REGEX_
SEARCH_
MODE_
TYPE
Classes
Pagination
Dto
Paginator
filter
Dto
projection
Dto
sort
Dto
start
Key
Dto
Type aliases
TYPE_
MONGO_
FIELD_
NAME
TYPE_
STRING_
NUM_
ARRAY
Variables
REGEX_
MONGO_
FIELD_
NAME
Functions
generate
Pagination
Filter
generate
Pagination
Next
Key
generate
Pagination
Next
Key
Dto
Arr
generate
Pagination
Query
paginate
References
default
Renames and re-exports
Paginator
Type aliases
TYPE_
MONGO_
FIELD_
NAME
TYPE_
MONGO_
FIELD_
NAME
:
string
|
string
[]
TYPE_
STRING_
NUM_
ARRAY
TYPE_
STRING_
NUM_
ARRAY
:
(
string
|
number
)
[]
Variables
REGEX_
MONGO_
FIELD_
NAME
REGEX_
MONGO_
FIELD_
NAME
:
RegExp
= ...
Functions
Const
generate
Pagination
Filter
generate
Pagination
Filter
(
filter
:
filterDto
[]
)
:
{}
Parameters
filter:
filterDto
[]
Returns
{}
Const
generate
Pagination
Next
Key
generate
Pagination
Next
Key
(
arr_start_keys
:
startKeyDto
[]
)
:
{}
Parameters
arr_start_keys:
startKeyDto
[]
Returns
{}
Const
generate
Pagination
Next
Key
Dto
Arr
generate
Pagination
Next
Key
Dto
Arr
(
next_key
:
any
)
:
any
[]
Parameters
next_key:
any
Returns
any
[]
Const
generate
Pagination
Query
generate
Pagination
Query
(
query
:
any
, sort
?:
any
, nextKey
?:
any
)
:
{
nextKeyFn
:
(
items
:
any
)
=>
{
_id
:
any
}
;
paginatedQuery
:
any
}
Parameters
query:
any
Optional
sort:
any
Optional
nextKey:
any
Returns
{
nextKeyFn
:
(
items
:
any
)
=>
{
_id
:
any
}
;
paginatedQuery
:
any
}
next
Key
Fn
:
(
items
:
any
)
=>
{
_id
:
any
}
(
items
:
any
)
:
{
_id
:
any
}
Parameters
items:
any
array of items
Returns
{
_id
:
any
}
_id
:
any
paginated
Query
:
any
Const
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
[]
}
>
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
[]
}
>
Exports
default
ENUM_
FILTER_
OPERATOR_
TYPE
REGEX_
SEARCH_
MODE_
TYPE
Pagination
Dto
Paginator
filter
Dto
projection
Dto
sort
Dto
start
Key
Dto
TYPE_
MONGO_
FIELD_
NAME
TYPE_
STRING_
NUM_
ARRAY
REGEX_
MONGO_
FIELD_
NAME
generate
Pagination
Filter
generate
Pagination
Next
Key
generate
Pagination
Next
Key
Dto
Arr
generate
Pagination
Query
paginate
Generated using
TypeDoc