Is it possible to set the property names to be case insensitive when filtering?
In my case, I am dynamically getting a document. Let's say I am searching the users collection by first name. In MongoDB, the standard naming convention is camelCase, "firstName". But, in C#, the standard naming convention for a property is PascalCase, "FirstName". So, when I am dynamically querying the collection and I do: Builders<BsonDocument>.Filter.Eq(nameof(User.FirstName), someNameVariable), because MongoDB is by default case sensitive for property names, this never returns a document.
Sure, I could utilize a library like Humanize and do nameof(User.FirstName).Camelize(), but I have to be sure to find all instances in my code to add Camelize(). All new code would need to do the same. It would be nice if there were a setting to tell MongoDB to be case insensitive for property names. Is there a setting to do this?