Command line mongo #Mongo Shell mongo Switch to a database use test List all databases show dbs List all collections show collections db.getCollectionNames() Insert to the test database db.restaurants.insert( { "address" : { "street" : "2 Avenue", "zipcode" : "10075", "building" : "1480", "coord" : [ -73.9557413, 40.7720266 ], }, "borough" : "Manhattan", "cuisine" : "Italian", "grades" : [ { "date" : ISODate("2014-10-01T00:00:00Z"), ...
It has to be simple.