deno.land / x / mongoose@6.7.5 / lib / helpers / model / applyStatics.js
1234567891011121314'use strict';
/** * Register statics for this model * @param {Model} model * @param {Schema} schema * @api private */module.exports = function applyStatics(model, schema) { for (const i in schema.statics) { model[i] = schema.statics[i]; }};
Version Info