RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

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!

Introducing MongoHydrator

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in