deno.land / x / mongoose@6.7.5 / lib / helpers / schema / addAutoId.js
12345678'use strict';
module.exports = function addAutoId(schema) { const _obj = { _id: { auto: true } }; _obj._id[schema.options.typeKey] = 'ObjectId'; schema.add(_obj);};
Version Info