Devolutions / mongodm-rs

A thin ODM layer for mongodb
30 stars 9 forks source link

Expose functionnalities on mongo collection #20

Closed Samuel-B-D closed 2 years ago

Samuel-B-D commented 2 years ago

Expose additionnal functionnalities provided by our Repository object to the native mongodb Collection object as an extension trait.

This keeps backward compatibility and keep the model versionning abilities of MongODM's Repository object, but also exposes our additionnal functionnalities (for now only bulk_update) to the native Collection itself, allowing users not using model versionning to directly use the native mongodb API.

CBenoit commented 2 years ago

Also, could you update the CHANGELOG.md file so we can bump directly? These changes will be included as well in next release: https://github.com/Devolutions/mongodm-rs/pull/19

Samuel-B-D commented 2 years ago

Also, could you update the CHANGELOG.md file so we can bump directly? These changes will be included as well in next release: #19

Sure!

Edit: Done!