|
Yes, in general (and for user data) but making the command names and their options (as well as replica set configuration for example) field name comparisons case-insensitive is helpful for the user experience, and to reduce bad things happening.
There are many times when people do something like this:
db.runCommand("serverstatus")
|
{
|
"errmsg" : "no such cmd: serverstatus",
|
"bad cmd" : {
|
"serverstatus" : 1
|
},
|
"ok" : 0
|
}
|
Or this:
> db.coll.runCommand("findAndModify",{Query:{_id:2}, update:{$set:{updated: new Date()}}}) //Query ignored and no error
|
{
|
"value" : {
|
"_id" : "John",
|
"Address" : {}
|
},
|
"lastErrorObject" : {
|
"updatedExisting" : true,
|
"n" : 1
|
},
|
"ok" : 1
|
}
|
There are more cases I can show of this coming up all over the place.
|