MCPcopy Create free account
hub / github.com/Automattic/mongoose / CustomQuery

Function CustomQuery

lib/query.js:296–302  ·  view source on GitHub ↗
(criteria, options)

Source from the content-addressed store, hash-verified

294 const coll = this.mongooseCollection;
295
296 const CustomQuery = function(criteria, options) {
297 if (!(this instanceof CustomQuery)) {
298 return new CustomQuery(criteria, options);
299 }
300 this._mongooseOptions = cloneMongooseOptions(p._mongooseOptions);
301 Query.call(this, criteria, options || null, model, coll);
302 };
303
304 util.inherits(CustomQuery, model.Query);
305

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected