* Register custom query methods for this model * * @param {Model} model * @param {Schema} schema * @api private
(model, methods)
| 5233 | */ |
| 5234 | |
| 5235 | function applyQueryMethods(model, methods) { |
| 5236 | for (const i in methods) { |
| 5237 | model.Query.prototype[i] = methods[i]; |
| 5238 | } |
| 5239 | } |
| 5240 | |
| 5241 | /** |
| 5242 | * Subclass this model with `conn`, `schema`, and `collection` settings. |