> db.collection.find({"_id": ObjectId}, { "name": 1, "slug": 1})
When I do:
> Profile.all(:id => ObjectId, :fields => [:name, :slug])
I get the entire profile object back.
So, how do I do this?
Thanks,
Scotty Weeks
I believe it should be something like:
> Profile.fields([:name, :slug]).all(:id => ObjectId)
> --
> You received this message because you are subscribed to the Google
> Groups "MongoMapper" group.
> For more options, visit this group at
> http://groups.google.com/group/mongomapper?hl=en?hl=en
On Oct 14, 2010, at 12:02 AM, Jamie Orchard-Hays wrote: