/
Stameskaaa
/
Server
Обзор
Документация
Войти
/
Stameskaaa
/
Server
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/mongoose/lib/drivers/browser/objectid.js
28 строк
478 B
Stameskaaa
first
19 июн 2024, 15:02
19 июн 2024, 15:02
ac1472e
Код
Авторство
О чём код?
/*! * [node-mongodb-native](https://github.com/mongodb/node-mongodb-native) ObjectId * @constructor NodeMongoDbObjectId * @see ObjectId */ 'use strict'; const ObjectId = require('bson').ObjectID; /** * Getter for convenience with populate, see gh-6115 * @api private */ Object.defineProperty(ObjectId.prototype, '_id', { enumerable: false, configurable: true, get: function() { return this; } }); /*! * ignore */ module.exports = exports = ObjectId;