How to implement server side pagination in sails js

How to implement server side pagination in sails js

piyushGpiyushG Posts: 2Questions: 2Answers: 0

In my sails js controller, I am calling an api which gives me a large set of data, approximately 10000 records. I want to show this data in my front end using the datatables, 100 records per page.I don't want all data to be fetched in a single call. Data for each page should be loaded using pagination. Do anyone have any idea? It will be of great help. I am not using the database directly. Everything is via API. There are examples using php. But I didn't found any server side pagination exmples in sails js

This discussion has been closed.