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

Function applyQueryMethods

lib/model.js:3785–3789  ·  view source on GitHub ↗
(model, methods)

Source from the content-addressed store, hash-verified

3783 */
3784
3785function applyQueryMethods(model, methods) {
3786 for (var i in methods) {
3787 model.Query.prototype[i] = methods[i];
3788 }
3789}
3790
3791/*!
3792 * Subclass this model with `conn`, `schema`, and `collection` settings.

Callers 1

model.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected