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.
		
		
		
		
		
			
		
			
				
					
					
						
							38 lines
						
					
					
						
							642 B
						
					
					
				
			
		
		
	
	
							38 lines
						
					
					
						
							642 B
						
					
					
				| 
 | |
| /*!
 | |
|  * Valid mongoose options
 | |
|  */
 | |
| 
 | |
| 'use strict';
 | |
| 
 | |
| const VALID_OPTIONS = Object.freeze([
 | |
|   'applyPluginsToChildSchemas',
 | |
|   'applyPluginsToDiscriminators',
 | |
|   'autoCreate',
 | |
|   'autoIndex',
 | |
|   'bufferCommands',
 | |
|   'bufferTimeoutMS',
 | |
|   'cloneSchemas',
 | |
|   'debug',
 | |
|   'maxTimeMS',
 | |
|   'objectIdGetter',
 | |
|   'overwriteModels',
 | |
|   'returnOriginal',
 | |
|   'runValidators',
 | |
|   'sanitizeProjection',
 | |
|   'selectPopulatedPaths',
 | |
|   'setDefaultsOnInsert',
 | |
|   'strict',
 | |
|   'strictQuery',
 | |
|   'toJSON',
 | |
|   'toObject',
 | |
|   'typePojoToMixed',
 | |
|   'useCreateIndex',
 | |
|   'useFindAndModify',
 | |
|   'useNewUrlParser',
 | |
|   'usePushEach',
 | |
|   'useUnifiedTopology'
 | |
| ]);
 | |
| 
 | |
| module.exports = VALID_OPTIONS;
 |