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/indexes/applySchemaCollation.js
generated
vendored
Normal file
13
backend/node_modules/mongoose/lib/helpers/indexes/applySchemaCollation.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
const isTextIndex = require('./isTextIndex');
|
||||
|
||||
module.exports = function applySchemaCollation(indexKeys, indexOptions, schemaOptions) {
|
||||
if (isTextIndex(indexKeys)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (schemaOptions.hasOwnProperty('collation') && !indexOptions.hasOwnProperty('collation')) {
|
||||
indexOptions.collation = schemaOptions.collation;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user