Modify a simple document:
. db.getCollection ( "Test") INSERT ( { title: "goods shopping list. 1", AMOUNT: 35, Detail: [ {name: "Apple",. price: 22 is}, {name: "flour", price: 18 } ] } ); // modify a qualified (inserted, a first qualifying) db.getCollection ( "Test") Update (. { title: "goods shopping list. 1" }, { $ SET: {title : "shopping list of goods 2"} } );
(Update, modify qualifying a (insert, in line with the conditions of the earliest a ))
Update Fields (increase, decrease):