Mongoid is the officially supported ODM (Object-Document-Mapper) framework for MongoDB in Ruby. This Mongoid community organization is a group of open-source contributors around the Mongoid ODM not affiliated with the company, MongoDB. Mongoid is customarily configured through a mongoid.yml file that specifies options and clients. The simplest configuration is as follows, which configures Mongoid to talk to a MongoDB server at “localhost:27017” and use the database named “mongoid”. If you are not using Ruby on Rails, Mongoid configuration must be loaded manually. This can be done via the Mongoid.load! method, which takes the configuration file path as its argument. It is also possible to configure Mongoid directly in Ruby, without using a configuration file. This configuration style does not support the concept of environments - whatever configuration is provided, it is applied to the current environment, but it does support defining multiple clients.

Features

  • Mongoid is an ODM (Object-Document Mapper) framework for MongoDB in Ruby
  • Mongoid has extensive user documentation
  • API documentation is also available
  • Mongoid is built on top of the MongoDB Ruby driver which has its own user documentation
  • Mongoid supports and is tested against MRI 2.5-3.0, JRuby 9.2 and MongoDB server 2.6-4.4
  • Please use the MONGOID project in MongoDB JIRA to report issues with Mongoid

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow Mongoid

Mongoid Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Mongoid!

Additional Project Details

Programming Language

Ruby

Related Categories

Ruby Frameworks

Registered

2022-02-11