MongoDB $ di Regex
// Find user who has the first_name equal with "name" (case insensitive)
const users = await User.find({
first_name: {
$in: [new RegExp(`^${name}$`, 'i'))]
}
})
florinrelea