* Register custom query methods for this model * * @param {Model} model * @param {Schema} schema * @api private
(model, methods)
| 5203 | */ |
| 5204 | |
| 5205 | function applyQueryMethods(model, methods) { |
| 5206 | for (const i in methods) { |
| 5207 | model.Query.prototype[i] = methods[i]; |
| 5208 | } |
| 5209 | } |
| 5210 | |
| 5211 | /** |
| 5212 | * Subclass this model with `conn`, `schema`, and `collection` settings. |