thedodd / wither

An ODM for MongoDB built on the official MongoDB Rust driver.
https://docs.rs/wither
Other
324 stars 40 forks source link

Re-introduce IndexModel from the official driver #87

Open simoneromano96 opened 2 years ago

simoneromano96 commented 2 years ago

With mongo driver 2.0 they re-introduced the IndexModel.

Currently wither uses a custom implementation to create and manage indexes.

There is also a bug, the custom implementation does not work with text-based indexes after the first run, I don't think we should try to solve this issue before re-introducing the IndexModel since I'm pretty sure it will fix itself.

Related documentation: