thedodd / wither

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

Index subdocument fields w/ custom derive. #21

Closed thedodd closed 5 years ago

thedodd commented 5 years ago

The custom derive system will be landing soon HAS LANDED (woot woot!), and one of the last outstanding challenges is to get a pattern in place which will work well for indexing model subdocument fields.

Put a plan of attack together on supporting indexes on nested models. Should be pretty straightforward. As a current workaround, users will simply have to implement the Model trait on their model manually.