mongoid
mongoid copied to clipboard
The Official Ruby Object Mapper for MongoDB
As per [DOCS-15993](https://jira.mongodb.org/browse/DOCS-15993), the limitation of dot in shard keys comes from MongoDB server, not from Mongoid. This is a follow-up to https://github.com/mongodb/mongoid/pull/5588
This PR removes the deprecated Monkey Patch methods. @jamis it would be ideal to backport the deprecations to the 8.x branch so that we may remove the methods in 9.0....
Adding static code analysis as part of our standard PR workflow.
*(This PR is currently a Proof-of-Concept.)* ## What? This PR implements short-circuit logic for the `$in`, `$nin`, and equality operators, in cases where the query condition deterministically results in a...
It is now inlined into its only usage. It was previously declared @api private so assume it is safe to delete.
This PR is a follow-up on MONGOID-5610 with some code from my original PR branch. It does two things: - Use a method delegator to `criteria` for `exists?` method in...
Background: While working on improving performance on our app, I've noticed that the `database_field_name` is consistently taking long than expected when calling the same field repeatedly(very common when iterating over...
**This is blocked until after https://github.com/mongodb/mongoid/pull/5269 is merged.** --- Fixes MONGOID-5210 **Prior to this PR**, Mongoid already supports defining field `:type` as a `Symbol` rather than a `Class`: ```ruby field...
Fixes MONGOID-5391 I'd like to humbly request this feature for reconsideration to be merged. A certain Mongoid maintainer of xmas past rejected this on the grounds that there are plans...
**This PR is a work-in-progress, code doesn't match spec below yet** * [ ] TODO: define === and ensure Mongoid::Matcher::Type works --- MONGOID-5408 introduced a new class `Mongoid::RawValue` which is...