(name, key, isStatic)
| 53 | } |
| 54 | |
| 55 | _setupMethodHandler(name, key, isStatic) { |
| 56 | if(isStatic) return; |
| 57 | mongoose.models[name].prototype[key] = function() { |
| 58 | return m._getMethodHandler(name, key, false).apply(this, Array.from(arguments)); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | _getList(isStatic) { |
| 63 | return isStatic ? this.modelStaticMethods : this.modelInstanceMethods; |
no test coverage detected