Sunday, July 8, 2012

db["entities"].find(); will find everything in a Mongo collection while db["entities"].remove(); will drop everything from the collection.

If db["entities"].find(); has stuff db.things.find(); will not retrieve the stuff. Be warned! This confused me.

No comments:

Post a Comment