The mongoose query returns an array of data, but when using the _.intersection () of underscore to take the intersection of two arrays found in the database, it returns []. Why?
It’s the data problem you found out, it’s an array object, not just an array.