How do i check if a string contains a list of words from an array. I know how do it with one word however how do with an array?
I've tried the following with no luck:
db.getCollection('questions').find( {$text:{$search:{$in: ['chips', 'mars']} }} )
Any ideas would be appreciated.
Thanks