I do my first project using MongoDB and Mongoose.
I wonder if is possible to use array in find query to retrieve all objects corresponding to array elements.
Please see the dummy code bellow.
let allCategory = ["a", "b", "c", "d"];
static async getItemByCategory(allCategory ) {
const item = Item.find({ allCategory });
return item;
}