Mongoose .find() with multiple conditions, getting cast error using Javascript
I am trying to form a search query with mongoose.find() but I keep getting an error back and I am not sure why. It receives a query parameter and return the items whose name OR description contain the parameter. Here…