* Register custom query methods for this model * * @param {Model} model * @param {Schema} schema * @api private
(model, methods)
| 5156 | */ |
| 5157 | |
| 5158 | function applyQueryMethods(model, methods) { |
| 5159 | for (const i in methods) { |
| 5160 | model.Query.prototype[i] = methods[i]; |
| 5161 | } |
| 5162 | } |
| 5163 | |
| 5164 | /** |
| 5165 | * Subclass this model with `conn`, `schema`, and `collection` settings. |