flask-pymongo
flask-pymongo copied to clipboard
Pagination Helper
If a query set is sorted, we can paginate efficiently using .min(...).skip(1).limit(page_size)
. Not sure how to make this work generically yet.
flask-mongoengine paginator could be used almost as it is https://github.com/MongoEngine/flask-mongoengine/blob/d3a45f863aef7c8e973eebbd838d3863c438976a/flask_mongoengine/pagination.py#L12