How to use dot in field name ?
I see error in example:
db.test2.insert({ "a.a" : "b" }) can't have . in field names [a.a]
You can replace dot symbols of your field name to Unicode equivalent of uff0E
uff0E
db.test.insert({"fielduff0ename": "test"}) db.test.find({"fielduff0ename": "test"}).forEach(printjson) { "_id" : ObjectId("5193c053e1cc0fd8a5ea413d"), "field.name" : "test" }
See more:
1.4m articles
1.4m replys
5 comments
57.0k users