Skip to content

Instantly share code, notes, and snippets.

@kcliu
Created March 28, 2013 20:48
Show Gist options
  • Save kcliu/5266666 to your computer and use it in GitHub Desktop.
Save kcliu/5266666 to your computer and use it in GitHub Desktop.
db.open(function(err, db) {
db.collection('foo', function(err, collection) {
collection.find({"foo":foo}).toArray(function(err, data) {
return data;
});//end of collection.find
});//end of db.collection
});// end of db.open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment