You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
746 B
41 lines
746 B
|
|
/*! |
|
* 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', |
|
'strict', |
|
'strictPopulate', |
|
'strictQuery', |
|
'toJSON', |
|
'toObject', |
|
'transactionAsyncLocalStorage', |
|
'translateAliases' |
|
]); |
|
|
|
module.exports = VALID_OPTIONS;
|
|
|