#mongo-db #service #starter #delete

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

#12 in #starter

Download history 4/week @ 2024-07-27 33/week @ 2024-09-21

55 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

~35MB
~778K SLoC