Find documents in MongoDB where one element or elements in array field matches an element in other array
The query I've got so far: const cities = await City.find({ names : { $in: citiesArray }}) The field names is a String separated by commas (e.g "A, B, C, D, E...") The field citiesArray is a JS array (e.g.…