Skip to content

Bump mongoid from 9.0.11 to 9.1.0#1646

Merged
github-actions[bot] merged 1 commit into
masterfrom
dependabot/bundler/mongoid-9.1.0
May 13, 2026
Merged

Bump mongoid from 9.0.11 to 9.1.0#1646
github-actions[bot] merged 1 commit into
masterfrom
dependabot/bundler/mongoid-9.1.0

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github May 13, 2026

Bumps mongoid from 9.0.11 to 9.1.0.

Release notes

Sourced from mongoid's releases.

9.1.0

The MongoDB Ruby team is pleased to announce version 9.1.0 of the mongoid gem - an Ruby ODM for MongoDB. This is a new minor release in the 9.x series of Mongoid.

Install this release using RubyGems via the command line as follows:

gem install -v 9.1.0 mongoid

Or simply add it to your Gemfile:

gem 'mongoid', '9.1.0'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

New Features

MONGOID-5411 allow results to be returned as demongoized hashes (PR)

Mongoid now supports a new raw directive when building queries. When present, the resulting query will be returned as hashes, rather than instantiated document models. The hashes will not be "demongoized" -- the values will be returned exactly as provided by the database, directly.

If you specify typed: true, the hashes will be returned with the values translated from the raw value stored in the database, into the corresponding type defined by the field definitions on the model. (That is to say, they will be "demongoized".)

For example:

result = Person.raw.first
p result  #=> {"_id"=>BSON::ObjectId(...), "name" => "...", "birth_date" => 2002-01-01 00:00:00 -0600, ... }
result = Person.raw(typed: true).first
p result  #=> {"_id"=>BSON::ObjectId(...), "name" => "...", "birth_date" => 2002-01-01, ... }
results = Person.where(...).limit(...).raw
p results.to_a #=> [ { "_id"=>BSON::ObjectId(...), ... }, { "_id"=>BSON::ObjectId(...), ... }, ... ]

The typed: true option will also honor embedded documents, correctly demongoizing the embedded hashes according to their declared types.

MONGOID-5752 Add Mongoid::Criteria#to_mql (PR)

To help with inspecting the queries that Mongoid generates, you can now call #to_mql on Criteria instances.

Person.where(...).to_mql

MONGOID-5827 Allow duplicate indexes to be declared (PR)

... (truncated)

Commits
  • fc21c41 Release candidate for 9.1.0 (#6145)
  • 1d7e435 bump spec/shared to get fix for release note parsing (#6144)
  • d43d3b4 MONGOID-5915 avoid async state corruption by forcing child fibers to copy par...
  • d6a62b4 MONGOID-5684 Ensure field_was returns the same type as field for hash-typed f...
  • 3e2471c MONGOID-5720 deprecate Criteria#max_scan (#6140)
  • dc4e025 MONGOID-5759 ensure unpersisted documents are picked up via HasMany#find (#6137)
  • f178538 MONGOID-5030 Short-circuit trivial queries where $in is given an empty arra...
  • a141ee0 MONGOID-5751 avoid unnecessary autosaves of unchanged subtrees (#6133)
  • 844f083 MONGOID-5923 Support auto emdedding vector search indexes and searches (#6130)
  • 730624b MONGOID-5750 Allow build_foo on embeds_one/has_one/etc. to specify the associ...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mongoid](https://github.com/mongodb/mongoid) from 9.0.11 to 9.1.0.
- [Release notes](https://github.com/mongodb/mongoid/releases)
- [Changelog](https://github.com/mongodb/mongoid/blob/master/CHANGELOG.md)
- [Commits](mongodb/mongoid@v9.0.11...v9.1.0)

---
updated-dependencies:
- dependency-name: mongoid
  dependency-version: 9.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@github-actions github-actions Bot enabled auto-merge (squash) May 13, 2026 01:15
@github-actions github-actions Bot merged commit f5239af into master May 13, 2026
26 checks passed
@dependabot dependabot Bot deleted the dependabot/bundler/mongoid-9.1.0 branch May 13, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants