I have a simple db.collection.find({}).forEach(...) query. In the function of the foreach, I'm checking whether an array of my document contains a certain keyword, myDoc.MyArray.includes(keyword), which it 100% does, however the function always returns false.
Is it perhaps that .includes is the wrong way of doing it in the MongoShell?