It is basically what the title says.
Input: myArray = an array of words
myArray
I have an model that have field wordsCollection , which is
wordsCollection
Use aggregation.
In $match aggregation pipeline, you can use $size and $gte