Can someone tell me why this command does not work with the MongoDB shell client:
db.coll.update({'live':true},{$set:{'mask':"\D\D\D\D\D\D\D\D"}},false,true)
but
db.coll.findOne({'id':'someId'})
returns the mask field as:
"mask" : "DDDDDDDD",
Where do the slashes go?
I tried "double escaping" with \\ D and inserted both traits:
"mask" : "\\D\\D\\D\\D\\D\\D\\D\\D",
MongoDB Shell Version: 2.0.6, MongoDB Version: 2.0.5, OSX Lion
thanks
source share