forked from CSI-KJSCE/BOS-React-
Commit With Frontend and Backend in MERN
This commit is contained in:
13
backend/node_modules/mongoose/lib/helpers/query/trusted.js
generated
vendored
Normal file
13
backend/node_modules/mongoose/lib/helpers/query/trusted.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
const trustedSymbol = Symbol('mongoose#trustedSymbol');
|
||||
|
||||
exports.trustedSymbol = trustedSymbol;
|
||||
|
||||
exports.trusted = function trusted(obj) {
|
||||
if (obj == null || typeof obj !== 'object') {
|
||||
return obj;
|
||||
}
|
||||
obj[trustedSymbol] = true;
|
||||
return obj;
|
||||
};
|
||||
Reference in New Issue
Block a user