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
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
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