---
title: "Discussion on \"Lowercase all values on a key for all documents in MongoDB\" | Hashnode"
description: "Discussion on \"Lowercase all values on a key for all documents in MongoDB\". Background\nImagine the following document:\n{\n  \"first_name\": \"John\",\n  \"last_name\": \"Doe\",\n  \"username\": \"doetheman\"\n}\n\nOur team a document like this and a problem;  our system is case-sensitive for the value of username. We did lowercase the value o..."
url: "https://hashnode.com/posts/lowercase-all-values-on-a-key-for-all-documents-in-mongodb/607aac95c99e200d08f7aa72"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Lowercase all values on a key for all documents in MongoDB](https://johachi.hashnode.dev/lowercase-all-values-on-a-key-for-all-documents-in-mongodb?utm_source=hashnode&utm_medium=feed)

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...

Apr 17, 2021 · 4 min read · johachi.hashnode.dev  
Read the article

-   [#mongodb](https://hashnode.com/tag/mongodb)

## Written by

[Johannes Jarbratt](https://hashnode.com/@Johachi)

@Johachi · Tokyo, Japan

  
[View profile](https://hashnode.com/@Johachi)

Programmer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
