Lowercase all values on a key for all documents in MongoDB
Background
Imagine the following document:
{
"first_name": "John",
"last_name": "Doe",
"username": "doetheman"
}
Our team a document like this and a problem; our system is case-sensitive for the value of username. We did lowercase the value o...
johachi.hashnode.dev4 min read