No way to modify totalResults
and itemsPerPage
in the ListResponse
result
#64
Labels
totalResults
and itemsPerPage
in the ListResponse
result
#64
I am using the
ListResponse
class to return a paginated response forUser
resources, which are retrieved from my application's database.Is there a way to modify the
itemsPerPage
andtotalResults
properties of theListResponse
?I am passing the
itemsPerPage
value from theparams
to theListResponse
to my SQL query which should correctly return the specified number of records from the database but thetotalResults
is meant to be a number showing count of the total records which satisfy the given conditions.In my case the
ListResponse
returns the records which my database query returns.here the
totalResults
is showing the length of theResources
property of theListResponse
, but I am not able to find a way to change it to the calculated value of 8.And the
itemsPerPage
value in the result is always 20, I provided theitemsPerPage
param value as1
.The text was updated successfully, but these errors were encountered: