Finding multiple documents is done with the find(), and returns an iterator in the form of an iterator.


$ mongo
> use demo
switched to db demo
> db.talks.find( { 'talks.title' : { '$exists' : true } } ).
... forEach(function(a) { print( a._id ) } );
derickr
>