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

Function CustomQuery

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

cloneFunction · 0.50

Tested by

no test coverage detected