deno.land / x / mongoose@6.7.5 / lib / helpers / indexes / applySchemaCollation.js
1234567891011121314'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; }};
Version Info