I\'m trying to create an API implementing pagination. Now to call the API in the frontend I need the count of total records and filter records.
Here is the code to my rep