flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
7
BACK_BACK/node_modules/mongoose/lib/helpers/schema/addAutoId.js
generated
vendored
Executable file
7
BACK_BACK/node_modules/mongoose/lib/helpers/schema/addAutoId.js
generated
vendored
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = function addAutoId(schema) {
|
||||
const _obj = { _id: { auto: true } };
|
||||
_obj._id[schema.options.typeKey] = 'ObjectId';
|
||||
schema.add(_obj);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue