Shanty-Mongo icon indicating copy to clipboard operation
Shanty-Mongo copied to clipboard

How to save subdocument withought overwriting the existing sub document data?

Open ptheofan opened this issue 11 years ago • 0 comments

Hi, excuse my question if it sounds trivial, but I'm trying to figure out how to save a subdocument withought overwriting the existing subdocument data whilst the data were not fetched.

I have tried with doc->sub1->sub2 = new Document() but it unfortunately overrides the existing data. Is there any way I can do that operation whithought having to fetch the subdocument in the first place?

Pretty thanks :)

ptheofan avatar Jul 10 '13 16:07 ptheofan