123456789101112131415161718192021222324252627282930313233 |
- /*!
- * Valid mongoose options
- */
- 'use strict';
- const VALID_OPTIONS = Object.freeze([
- 'applyPluginsToChildSchemas',
- 'applyPluginsToDiscriminators',
- 'autoCreate',
- 'autoIndex',
- 'bufferCommands',
- 'bufferTimeoutMS',
- 'cloneSchemas',
- 'debug',
- 'maxTimeMS',
- 'objectIdGetter',
- 'overwriteModels',
- 'returnOriginal',
- 'runValidators',
- 'sanitizeFilter',
- 'sanitizeProjection',
- 'selectPopulatedPaths',
- 'setDefaultsOnInsert',
- 'strict',
- 'strictPopulate',
- 'strictQuery',
- 'toJSON',
- 'toObject'
- ]);
- module.exports = VALID_OPTIONS;
|