How to query mongodb with DBRef

Got it:

db.post.find({'author.$id': 'foo'})

Leave a Comment