Mongoid is the officially supported object-document mapper (ODM) for MongoDB in Ruby.

For documentation on Mongoid 3 and 4, see

Additional Mappers

In addition to Mongoid, several other mappers are available:

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.