I have the following collection
{ "_id" : ObjectId("57315ba4846dd82425ca2408"), "myarray" : [ { use
In MongoDB 3.6 it is now possible to upsert elements in an array.