* Register custom query methods for this model * * @param {Model} model * @param {Schema} schema * @api private
(model, methods)
| 5249 | */ |
| 5250 | |
| 5251 | function applyQueryMethods(model, methods) { |
| 5252 | for (const i in methods) { |
| 5253 | model.Query.prototype[i] = methods[i]; |
| 5254 | } |
| 5255 | } |
| 5256 | |
| 5257 | /** |
| 5258 | * Subclass this model with `conn`, `schema`, and `collection` settings. |