Constructs an instance of this DTO.
Contains the results returned by the query in an array of
template type TData
.
An array of documents will always be of maximum size as it
is specified in the pagination property.
Contains the pagination properties such as pageSize
,
pageNumber
and total
.
Method to validate whether an instance of this DTO is the last page of the (paginated) result.
Method to dynamically create and return an instance of this class with the provided data type, data content and pagination content.
The results returned by the query in an array of template type TData
.
The pagination object, contains properties such as pageSize
, pageNumber
and total
.
Generated using TypeDoc
This class represents a paginated result object around the
TData
template. Data is returned in a field nameddata
as an array ofTData
.This class shall be used to respond with paginated results from an endpoint (route).
v0.1.0