Registry / database / mongo
library2.24.1rbrubygemsunverified

A pure-Ruby driver for connecting to, querying, and manipulating MongoDB databases, officially developed and supported by MongoDB.

gem install mongo
INSTALL
IMPORT
SIG · MONGO
M
mongo
databaserubyv2.24.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mongo
require 'mongo'

Connect and insert a document

require 'mongo' client = Mongo::Client.new('mongodb://localhost:27017/mydb') collection = client[:users] collection.insert_one({ name: 'Alice' })
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.24.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mongo — gem install mongo · libregistry