Request: Pass params to attachPaginate for global usage
owen-soak opened this issue · comments
Owen Rhodes commented
I'd love to be able to pass isLengthAware: true to attachPaginate() as a param and have this take effect globally on all usages of paginate.
Felix Mosheev commented
I think that it is possible, but not sure why would you like to do that.
Pay attention that isLengthAware
makes an additional db query.
Dragan commented
This would be a nice feature. I am aware that it would make an additional query but I need to know the total length for every request.
Felix Mosheev commented
Would you like to make a PR for this?