1
I need to make a find in my Mongo by likeness example
[
{
"nome" : "Erick",
"codigo" : 1,
"periodos" : 10
},
{
"nome" : "Erica",
"codigo" : 1,
"periodos" : 10
},
{
"nome" : "Arthur",
"codigo" : 2,
"periodos" : 5
}
]
In my find then I will receive 'Eric'
cursos.find({
nome: "eric"
}
I want to return the two elements that contain these String or is the data of Erick and Erica
Passing the String directly works but for me to use a variable that contains the String how do ? And I still want the search to be case-sensitive
– Erick Zanetti
This link in the answer contains all this information, if you have difficulty implementing any, open a new question with the code you are trying. Good Luck.
– MagicHat