I have the following collection
{ "_id" : ObjectId("57315ba4846dd82425ca2408"), "myarray" : [ { use
array update and create don't mix in under one query, if you care much about atomicity then there's this solution:
normalise your schema to,
{ "_id" : ObjectId("57315ba4846dd82425ca2408"), userId : ObjectId("570ca5e48dbe673802c2d035"), point : 5 }