* Register custom query methods for this model * * @param {Model} model * @param {Schema} schema * @api private
(model, methods)
| 5128 | */ |
| 5129 | |
| 5130 | function applyQueryMethods(model, methods) { |
| 5131 | for (const i in methods) { |
| 5132 | model.Query.prototype[i] = methods[i]; |
| 5133 | } |
| 5134 | } |
| 5135 | |
| 5136 | /** |
| 5137 | * Subclass this model with `conn`, `schema`, and `collection` settings. |