My model was,
var userSchema = new Schema({
first_name : String,
last_name : String,
...
});
From this, I need to do search filter option. For that I am passing name
params with value.
Now I want to return the document which contains first_name == name
or last_name == name
How to write the query for that?