-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Write Ops
-
None
-
Environment:1.6.3 / 64bit
-
Query
-
Fully Compatible
This is good:
> db.test.insert({"x.y":1}) Fri Oct 22 13:08:29 uncaught exception: can't have . in field names [x.y]
This was not good for a user to stumble on:
> db.test.insert({"x":1}) > db.test.update({"x":1}, {"$set":{"y":{"z.z":1}}}) not okForStorage
I wish the $set error also explained the problem with the dot in the key name.
- is related to
-
SERVER-3730 Illegal key names allowed in $set command
- Closed
- related to
-
SERVER-7557 Update doesn't support "$"s in the field (not at the start)
- Closed
-
SERVER-30575 Please add escaping convention for dot and dollar signs!
- Backlog