Lets say I have this Object:
{town_id: 13, houses_data: [ {house_id: 5, price: 32, description: \"thats a house\"}, {house_id: 2, price: 12, descript
You might use $ to update the first embedded document matching the given query:
db.test.town.update({town_id: 13, "houses_data.house_id":5}, {$set: { "houses_data.$.description": "sold"}})