Instead of always creating a Cursor to make a paginated search, this implementation tries to get closer to the mongodb implementation and add the new function find_paginated to the collection.
This is the first step to more natural interaction with the Crate.
In Future this might get even more improved by using Streams like the mongodb crate.
Behaviour changes
Old: For every query, one had to create a PaginatedCursor and pass the collection.
New: You can now directly make a paginated find on the collection.
Linked Items
Fixes #10
Description
Instead of always creating a Cursor to make a paginated search, this implementation tries to get closer to the mongodb implementation and add the new function
find_paginated
to the collection. This is the first step to more natural interaction with the Crate. In Future this might get even more improved by using Streams like the mongodb crate.Behaviour changes
Old: For every query, one had to create a
PaginatedCursor
and pass the collection.New: You can now directly make a paginated
find
on the collection.Category
This is related to a:
Tests