-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.5.4
-
Component/s: Querying
-
Labels:None
-
ALL
-
I have a document where i store a email adres, on insert of a new document i want to check if the email adres is already in use.
See the document below with a simple (yes i know not ok) email, i just want 1 dot to simplify
{ "_id" : ObjectId("5911b0ce055cdb7a64d79892"), "first_name" : "Bob", "last_name" : "Lastnam", "email" : "bob.lastname" }I use a $regex to search if there are already documents present with the email. i escape the "special" dot so it's handled like a literal.