How does Query.prototype.merge() works in Mongoose ?
The Query.prototype.merge() function is used to merge another Query or conditions object into the current query for which this function is used i.e this query. When a Query is passed, conditions, field selection and options are merged.Syntax: Query.prototype.merge() Parameters: This function has one