andyb
04/15/2018, 10:22 AMval query = Query(Criteria.where("teams.players.playerId").`is`(playerId))
val update = Update()
with(update) {
set("teams.$.players.$.name", player.name)
...
This fails as the '$' can only be used once to refer to the index in the players array, I need a way to generate the equivalent '$' for the index in the teams array. Any ideas for this Mongo newbie?Czar
04/15/2018, 12:03 PMandyb
04/15/2018, 12:04 PM