Nella shell, la mia domanda è:query di aggiornamento in MongoDB guscio
db.checkin_4e95ae0926abe9ad28000001.update({location_city:"New York"}, {location_country: "FUDGE!"});
Tuttavia, in realtà non aggiornare il mio record. Neanche l'errore. Quando faccio un db.checkin_4e95ae0926abe9ad28000001.find({location_city:"New York"});
dopo l'esecuzione di questo, ho tutti i miei risultati, ma il location_country
non è cambiato:
{
"_id": ObjectId("4e970209a0290b70660009e9"),
"addedOn": ISODate("2011-10-13T15:21:45.772Z"),
"location_address1": "",
"location_city": "New York",
"location_country": "United States",
"location_latLong": {
"xLon": -74.007124,
"yLat": 40.71455
},
"location_source": "socialprofile",
"location_state": "New York",
"location_zip": ""
}