* Register custom query methods for this model * * @param {Model} model * @param {Schema} schema * @api private
(model, methods)
| 5147 | */ |
| 5148 | |
| 5149 | function applyQueryMethods(model, methods) { |
| 5150 | for (const i in methods) { |
| 5151 | model.Query.prototype[i] = methods[i]; |
| 5152 | } |
| 5153 | } |
| 5154 | |
| 5155 | /** |
| 5156 | * Subclass this model with `conn`, `schema`, and `collection` settings. |