Using $set
with nested integer keys breaks the structure
#3775
Labels
type: bug
A general bug
Milestone
Given the following class (kotlin)
Update queries where the keys in these nested hashmaps are integers, will not go deeper than the second level:
The result of the save is:
The update query object is:
The result given by the
updateFirst
is howeverNotice that the level "levelOne.0.1" has gone.
Doing the same thing in Mongo Shell gives the expected result:
When using non-numeric keys, the result is as one would expect:
Gives
The text was updated successfully, but these errors were encountered: