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

Function CustomQuery

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

cloneFunction · 0.50

Tested by

no test coverage detected