These are chat archives for Automattic/mongoose

3rd
Jan 2019
Rodolpho Netto
@rodolphonetto
Jan 03 18:25
Hey guys, how can I do a model.find() using a like? I looked the docs but it did not work
I tried that
Country.find({
    name: /countryName/i
})
where countryName is a string that comes in a req.body fields