mongomapper
How to delete an Embedded Doc in MongoMapper using atomic Pull?
I\'m successfully using MongoMapper\'s built-in support for atomic \"$push\" and \"$set\", but can\'t figure out \"$pull\"[详细]
2023-01-23 13:47 分类:问答Rails: Store JSON in MongoDB
I am getting multiple similar JSON object from a remote site and looking to store them in a local MongoDB.[详细]
2023-01-22 10:55 分类:问答Parent association for embedded document using MongoMapper
If I have: class Post include MongoMapper::Document has_many :comments end If I do: class Comment include MongoMapper::EmbeddedDocument[详细]
2023-01-21 02:35 分类:问答How to precisely control your queries with MongoMapper
I have an index like this in my database (for my table entries): {\"created_at\": -1, \"search_id\": 1, \"services\":1}[详细]
2023-01-20 20:46 分类:问答Indices and capped collections with MongoMapper
What is the best way to set up an index or configure a capped collections in a Rails project开发者_开发百科?[详细]
2023-01-20 17:28 分类:问答activerecord query as map reduce in mongodb
I would like to know how I can reproduce开发者_Python百科 the following query as map reduce or any juice function from MongoMapper or MongoID:[详细]
2023-01-20 10:53 分类:问答Querying associated collection using MongoMapper scopes?
class Comment include MongoMapper::Document scope :by_rating, lambda { |minimum| where(:rating.gte => minimum) }[详细]
2023-01-20 10:01 分类:问答Where and how to do custom validation on models?
Lets say we have a simple model that stores two integers, the min and the max. We would like to force min <= max.[详细]
2023-01-17 08:06 分类:问答Ruby Sinatra - connect to mongoDB on mongoHQ failed
This is just for my weekend project/study, I am very new to Sinatra and MongoDB. I\'ve installed the gems for mongoDB, such as: mongo, mongo_mapper and mongoid.[详细]
2023-01-15 14:33 分类:问答Eager Loading of Associations using MongoMapper
I\'m looking to Eager Load Associated Documents using MongoMapper. Say I have an author with a :has_one condition to a Post, I should be able to load the author using a single query[详细]
2023-01-14 02:00 分类:问答