UNPKG

725 BJavaScriptView Raw
1
2/*!
3 * Valid mongoose options
4 */
5
6'use strict';
7
8const VALID_OPTIONS = Object.freeze([
9 'allowDiskUse',
10 'applyPluginsToChildSchemas',
11 'applyPluginsToDiscriminators',
12 'autoCreate',
13 'autoIndex',
14 'autoSearchIndex',
15 'bufferCommands',
16 'bufferTimeoutMS',
17 'cloneSchemas',
18 'createInitialConnection',
19 'debug',
20 'id',
21 'timestamps.createdAt.immutable',
22 'maxTimeMS',
23 'objectIdGetter',
24 'overwriteModels',
25 'returnOriginal',
26 'runValidators',
27 'sanitizeFilter',
28 'sanitizeProjection',
29 'selectPopulatedPaths',
30 'setDefaultsOnInsert',
31 'strict',
32 'strictPopulate',
33 'strictQuery',
34 'toJSON',
35 'toObject',
36 'transactionAsyncLocalStorage',
37 'translateAliases'
38]);
39
40module.exports = VALID_OPTIONS;