芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/mongoose/lib/types/objectid.js
/** * ObjectId type constructor * * ####Example * * const id = new mongoose.Types.ObjectId; * * @constructor ObjectId */ 'use strict'; const ObjectId = require('../driver').get().ObjectId; const objectIdSymbol = require('../helpers/symbols').objectIdSymbol; /*! * Getter for convenience with populate, see gh-6115 */ Object.defineProperty(ObjectId.prototype, '_id', { enumerable: false, configurable: true, get: function() { return this; } }); ObjectId.prototype[objectIdSymbol] = true; module.exports = ObjectId;