#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

#2771 in Database interfaces

Download history 5/week @ 2024-03-10 48/week @ 2024-03-31 2/week @ 2024-05-19

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

~31MB
~715K SLoC