[−][src]Crate mongodb_cursor_pagination
Based on the node module but for Rust. You can read more about it on their blog post and why it seems necessary.
So far it only supports count and find. Search and aggregation will come when needed.
The usage is a bit different than the node version. See the examples for more details.
Structs
Edge | Edges are the cursors on all of the items in the return |
FindResult | The result of a find method with the items, edges, pagination info, and total count of objects |
PageInfo | Provides details about if there are more pages and the cursor to the start of the list and end |
PaginatedCursor | The main entry point for finding documents |
Enums
CursorDirections | The direction of the list, ie. you are sending a cursor for the next or previous items. Defaults to Next |
Functions
get_object_id | Converts an id into a MongoDb ObjectId |