Spaces:
Runtime error
Runtime error
Download static/node_modules/mongoose/lib/helpers/indexes/applySchemaCollation.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 357 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/indexes/applySchemaCollation.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongoose/lib/helpers/indexes/applySchemaCollation.js
-
curl -L -o applySchemaCollation.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/indexes/applySchemaCollation.js
357 Bytes
| ; | |
| 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; | |
| } | |
| }; | |