January 2018
Intermediate to advanced
414 pages
10h 29m
English
We can check our data using the find command:
> db.Customers.find(){ "_id" : ObjectId("59d6adc1ad712390e783617e"), "name" : "spring" }{ "_id" : ObjectId("59d6adcead712390e783617f"), "name" : "reactive" }{ "_id" : ObjectId("59d6adcead712390e7836180"), "name" : "microservices" }
We can now update one document in our collection using the update command:
> db.Customers.update({ "_id" : ObjectId("59d6adc1ad712390e783617e")} , {"name" : "super spring"})WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 })
Or, we can delete one document using the ...
Read now
Unlock full access