feathersjs-ecosystem / feathers-hooks-common

Useful hooks for use with FeathersJS services.
https://hooks-common.feathersjs.com
MIT License
193 stars 90 forks source link

[draft] new: next #718

Open FossPrime opened 1 year ago

FossPrime commented 1 year ago

Summary

Adds a hook named next. It attaches an iterator named next to paginated results to improve pagination ergonomics.

https://github.com/feathersjs-ecosystem/feathers-hooks-common/issues/717

FossPrime commented 1 year ago

Given the racy nature of Pagination and variables like Mongo's estimatedTotalCount...

@fratzinger Could we put this into an experimental labs export? Kinda like this, example, where DataTables API is in flux and being iterated over for years.

Screenshot_20230520-172355