deno.land / x / mongoose@6.7.5 / lib / helpers / indexes / applySchemaCollation.js

applySchemaCollation.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'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; }};
mongoose

Version Info

Tagged at
a year ago