hello,
I am trying to update an inner document contained into an array.
As input I have the the id of the outer document and the id of the inner document.
I would like to run this query from go, what is the standard syntax in mgo , is there at list the chance to raw this raw version of the query at least?
hello, I am trying to update an inner document contained into an array. As input I have the the id of the outer document and the id of the inner document.
This is the query in mongodb javascript sintax
db.getCollection('accounts').update({ _id: "TestLedgerAddCheck", "history.tx": "ed95e7fee5a19a449023b1d8143d569b2be7b9043bbd18e4c4134b4b93e087cf" },{ $set: {"history.$.time": 42} }, false, true );
I would like to run this query from go, what is the standard syntax in mgo , is there at list the chance to raw this raw version of the query at least?
Tk in advance, LP