(criteria, options)
| 290 | const coll = this.mongooseCollection; |
| 291 | |
| 292 | const CustomQuery = function(criteria, options) { |
| 293 | if (!(this instanceof CustomQuery)) { |
| 294 | return new CustomQuery(criteria, options); |
| 295 | } |
| 296 | this._mongooseOptions = clone(p._mongooseOptions); |
| 297 | Query.call(this, criteria, options || null, model, coll); |
| 298 | }; |
| 299 | |
| 300 | util.inherits(CustomQuery, model.Query); |
| 301 |