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