How do you search an array in MongoDB with mongoose
I am currently trying to find if an array of strings contains a certain string. So far, what I have is: Following.find({ username: username }, { following: { $in: [profileUsername] } }).exec((err, result) => { if (err) { console.log(err); res.json(err);…