Creating Documents, MongoDB — 2 Inserts are the basic method for adding data to MongoDB. To insert a document into a collection, use the collection’s insert method: > db.foo.insert({"bar" : "baz"}) Tags: mongodb