Monday, July 7, 2014

MongoDB Intro

db.cars.remove( {"_id" : allCars[3]["_id"]} ) db.cars.find() db.cars.update( {"_id" : allCars[2]["_id"]}, {$set : { "dog_friendliness" : true } } ) db.cars.find() "_id" "make" "name" "color" db.cars.insert({ "make" : "Nissan", "name" : "Leaf", "color: "Yellow" }) //new car is made db.cars.find( { "make" : "Nissan", "dog_friendliness" : true }

No comments:

Post a Comment