I was under the impression that this should never happen:
Playername is an indexed field, so having two instances of an indexed field is even weirder than an unindexed field.
The value “ahmer#44164” already exists in another document, so mongodb throws an error if i try to set the first playername to “ahmer#44164", but not if I do it on the second field
Querying for the playername “ahmer#44164” yields only one document
Steps to reproduce:
- make a blank doc
- right click the doc in robo3t and click edit
- add the duplicate keys
I found this question on stackoverflow but it has no explanation.