fix: Warning logged when setting option databaseOptions.disableIndexFieldValidation (#9880)

This commit is contained in:
Antoine Cormouls
2025-10-16 09:29:02 +02:00
committed by GitHub
parent 3f0ec42240
commit 1815b019b5
4 changed files with 12 additions and 2 deletions

View File

@@ -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: