How can I filter the results of an object array instead of using many if\'s
Product schema
let productSchema = new Schema({ name: { type: String, r