I have an object that has attributes. This includes an array of other Objects that have their own attributes.
Lobby: --> \"a\": \"b\" --> \"c\": \"
I managed to find a working solution!
Game.findOneAndUpdate({'a': 'b', 'Players.status': 'open'}, { $set : { 'Players.$': player} }, function (err, doc) { if (err) { console.log(err); } else { // Do stuff } });