Need advice about which tool to choose?Ask the StackShare community!

Mongoid

104
72
+ 1
4
Mongoose

2.1K
1.4K
+ 1
56
Add tool

Mongoid vs Mongoose: What are the differences?

Mongoid: Ruby ODM framework for MongoDB. The philosophy of Mongoid is to provide a familiar API to Ruby developers who have been using Active Record or Data Mapper, while leveraging the power of MongoDB's schemaless and performant document-based design, dynamic queries, and atomic modifier operations; Mongoose: MongoDB object modeling designed to work in an asynchronous environment. Let's face it, writing MongoDB validation, casting and business logic boilerplate is a drag. That's why we wrote Mongoose. Mongoose provides a straight-forward, schema-based solution to modeling your application data and includes built-in type casting, validation, query building, business logic hooks and more, out of the box.

Mongoid and Mongoose can be primarily classified as "Object Document Mapper (ODM)" tools.

Mongoid and Mongoose are both open source tools. Mongoose with 18.8K GitHub stars and 2.62K forks on GitHub appears to be more popular than Mongoid with 21 GitHub stars and 14 GitHub forks.

According to the StackShare community, Mongoose has a broader approval, being mentioned in 85 company stacks & 88 developers stacks; compared to Mongoid, which is listed in 7 company stacks and 7 developer stacks.

Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Mongoid
Pros of Mongoose
  • 1
    Can be used without Rails
  • 1
    Supports Referenced and Embedded Associations
  • 1
    Easy to add 'created_at' and 'updated_at'' timestamps
  • 1
    Drop-in-and-forget replacement for activerecord
  • 17
    Several bad ideas mixed together
  • 17
    Well documented
  • 10
    JSON
  • 8
    Actually terrible documentation
  • 2
    Recommended and used by Valve. See steamworks docs
  • 1
    Can be used with passportjs for oauth
  • 1
    Yeah

Sign up to add or upvote prosMake informed product decisions

Cons of Mongoid
Cons of Mongoose
    Be the first to leave a con
    • 3
      Model middleware/hooks are not user friendly

    Sign up to add or upvote consMake informed product decisions

    - No public GitHub repository available -

    What is Mongoid?

    The philosophy of Mongoid is to provide a familiar API to Ruby developers who have been using Active Record or Data Mapper, while leveraging the power of MongoDB's schemaless and performant document-based design, dynamic queries, and atomic modifier operations.

    What is Mongoose?

    Let's face it, writing MongoDB validation, casting and business logic boilerplate is a drag. That's why we wrote Mongoose. Mongoose provides a straight-forward, schema-based solution to modeling your application data and includes built-in type casting, validation, query building, business logic hooks and more, out of the box.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Mongoid?
    What companies use Mongoose?
    Manage your open source components, licenses, and vulnerabilities
    Learn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Mongoid?
    What tools integrate with Mongoose?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    JavaScriptGitHubNode.js+29
    14
    13754
    Jun 19 2015 at 6:37AM

    ReadMe.io

    JavaScriptGitHubNode.js+25
    12
    2578
    What are some alternatives to Mongoid and Mongoose?
    MongoDB
    MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding.
    MySQL
    The MySQL software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.
    PostgreSQL
    PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions.
    Redis
    Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams.
    Amazon S3
    Amazon Simple Storage Service provides a fully redundant data storage infrastructure for storing and retrieving any amount of data, at any time, from anywhere on the web
    See all alternatives