Introducing MongoHydrator
MongoHydrator is a new gem that makes the expansion of embedded MongoDB IDs into full subdocuments easy and efficient.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
MongoHydrator is a new gem that makes the expansion of embedded MongoDB IDs into full subdocuments easy and efficient.
Comments
Couldn’t you just use DBRef’s? Mongo will automatically fetch those for you. It wouldn’t be as sugary sweet, but you could easily build a nice syntax layer on top of it. :)
AFAIK, DBRefs can only be dereferenced one at a time. MongoHydrator handles all of the dereferences with a single Mongo query.
Post a comment