mongo works

This commit is contained in:
counterweight 2025-06-01 23:23:55 +02:00
parent ae6ccd559f
commit 125107da50
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
937 changed files with 205033 additions and 2 deletions

View file

@ -0,0 +1,42 @@
/*!
* Valid mongoose options
*/
'use strict';
const VALID_OPTIONS = Object.freeze([
'allowDiskUse',
'applyPluginsToChildSchemas',
'applyPluginsToDiscriminators',
'autoCreate',
'autoIndex',
'autoSearchIndex',
'bufferCommands',
'bufferTimeoutMS',
'cloneSchemas',
'createInitialConnection',
'debug',
'forceRepopulate',
'id',
'timestamps.createdAt.immutable',
'maxTimeMS',
'objectIdGetter',
'overwriteModels',
'returnOriginal',
'runValidators',
'sanitizeFilter',
'sanitizeProjection',
'selectPopulatedPaths',
'setDefaultsOnInsert',
'skipOriginalStackTraces',
'strict',
'strictPopulate',
'strictQuery',
'toJSON',
'toObject',
'transactionAsyncLocalStorage',
'translateAliases'
]);
module.exports = VALID_OPTIONS;