fix: Warning logged when setting option databaseOptions.disableIndexFieldValidation (#9880)
This commit is contained in:
@@ -1092,6 +1092,12 @@ module.exports.DatabaseOptions = {
|
||||
'The MongoDB driver option to specify the amount of time, in milliseconds, to wait to establish a single TCP socket connection to the server before raising an error. Specifying 0 disables the connection timeout.',
|
||||
action: parsers.numberParser('connectTimeoutMS'),
|
||||
},
|
||||
disableIndexFieldValidation: {
|
||||
env: 'PARSE_SERVER_DATABASE_DISABLE_INDEX_FIELD_VALIDATION',
|
||||
help:
|
||||
'Set to `true` to disable validation of index fields. When disabled, indexes can be created even if the fields do not exist in the schema. This can be useful when creating indexes on fields that will be added later.',
|
||||
action: parsers.booleanParser,
|
||||
},
|
||||
enableSchemaHooks: {
|
||||
env: 'PARSE_SERVER_DATABASE_ENABLE_SCHEMA_HOOKS',
|
||||
help:
|
||||
|
||||
Reference in New Issue
Block a user