Registry / database / mongo-mapper

mongo-mapper

JSON →
library0.17.0rbrubygemsunverified

MongoMapper is an Object-Document Mapper for Ruby and Rails, providing a simple and elegant way to interact with MongoDB.

gem install mongo_mapper
INSTALL
IMPORT
SIG · MONGO-MAPPER
M
mongo-mapper
databaserubyv0.17.0
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.

MongoMapper
require 'mongo_mapper'

Define a document model and create a record

require 'mongo_mapper' MongoMapper.database = 'myapp' class User include MongoMapper::Document key :name, String end user = User.create(name: 'John') puts user.name
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.17.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
36
OpenAI (training)
1
Resources