#mongodb #service #starter

mongodb-base-service

A simple Rust service wrapper to simplify finds, updates, deletes

12 releases (4 breaking)

0.5.1 Sep 10, 2020
0.4.4 Aug 12, 2020
0.4.3 Jul 15, 2020

#2696 in Database interfaces

22 downloads per month
Used in graphql-mongodb-boilerpla…

MIT license

42KB
1K SLoC

MongoDB base service

This provides a simple wrapper of MongoDB to assist with creating/updating/etc.. especially when some things are embedded documents. Docs are still TBD but look at graphql-mongodb-boilerplate for an example of how to use.

Note - deprecated from 0.2.x

The return from the insert methods (insert_one, insert_many and insert_embedded) all return ids instead of the full objects now. Please do a find after if you need the full object.

Dependencies

~32MB
~797K SLoC