LearnBoost/mongoose — Issue #696: DBRef Documentation Enhancement
Author: pctj101
Created: 2012-01-23 23:13:14+00:00
State: open

I was fighting with DBRef a bunch for a number of hours. Turns out I was able to populate the parent from the child object, but not the other way around. It was because I didn't push the child onto the parent's DBref array.

There's nothing in the documentation about this, so I assumed the links were made bi-directionally automatically. Nope!

There's a gist that I found after that demos the difference between uni and bi-directional relations:
https://gist.github.com/1170907

How can I help update the mongoosejs.com documentation to include this small, yet important note?

Ah.. okay it's in:
https://github.com/LearnBoost/mongoose/blob/master/docs/populate.md

I'll try to figure out how and give you guys a pull a lil later.