UNPKG

498 BJavaScriptView Raw
1
2/*!
3 * Valid mongoose options
4 */
5
6'use strict';
7
8const VALID_OPTIONS = Object.freeze([
9 'applyPluginsToChildSchemas',
10 'applyPluginsToDiscriminators',
11 'autoIndex',
12 'bufferCommands',
13 'cloneSchemas',
14 'debug',
15 'maxTimeMS',
16 'objectIdGetter',
17 'runValidators',
18 'selectPopulatedPaths',
19 'strict',
20 'toJSON',
21 'toObject',
22 'useCreateIndex',
23 'useFindAndModify',
24 'useNewUrlParser',
25 'usePushEach',
26 'useUnifiedTopology',
27 'typePojoToMixed'
28]);
29
30module.exports = VALID_OPTIONS;