Mongoid¶
Mongoid is the officially supported ODM (Object-Document-Mapper) framework for MongoDB in Ruby.
For documentation on Mongoid 3 and 4, see http://mongoid.github.io.
Additional Mappers¶
In addition to Mongoid, several other mappers are available:
- MongoMapper from John Nunemaker
- MongoODM from Carlos Paramio
- DriverAPILayer from Alexey Petrushin
All the mappers build on top of the basic Ruby driver and so some knowledge of that is useful, especially if you work with a custom MongoDB configuration.