I want to get all chats where name or surname is equal to search regex value.
I tried this :
Chat.find({ users: req.params.id }) .