Created
March 27, 2015 18:55
-
-
Save danared/7aaea86d97df6b3069b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Band. | |
findOne({ name: "Guns N' Roses" }). | |
populate('lead'). | |
exec(function(err, band) { | |
console.log(band.lead.name); // "Axl Rose" | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment