(criteria, options)
| 225 | const coll = this.mongooseCollection; |
| 226 | |
| 227 | const CustomQuery = function(criteria, options) { |
| 228 | if (!(this instanceof CustomQuery)) { |
| 229 | return new CustomQuery(criteria, options); |
| 230 | } |
| 231 | this._mongooseOptions = clone(p._mongooseOptions); |
| 232 | Query.call(this, criteria, options || null, model, coll); |
| 233 | }; |
| 234 | |
| 235 | util.inherits(CustomQuery, model.Query); |
| 236 |