I'm building a fuzzy game search to search through the games in mongodb and display the items that match. There are 3 search bars meaning you can search by name, genre, or platform. The genre and platform are stored in arrays in the database and I cannot figure out how to see if one of the items in an array matches the search term. It works when there is only one item in the array, but if there are 2 or more, it doesn't work. 

this is what I have now:

```
if (req.query.searchGenre) {
    const regex = new RegExp(escapeRegex(req.query.searchGenre), "gi")
    Games.find({ genre: { $in: regex } }, (err, games) => {
      console.log(regex)
      if (err) {
        console.log(err)
      } else {
        res.render("index", { games: games })
      }
    })
  }

```

I have tried all of the array query selectors from the mongodb docs and those aren't working. 

If you have any ideas, I'd greatly appreciate it!