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

@@ -343,7 +343,7 @@ export interface ParseServerOptions {
:DEFAULT: [] */
rateLimit: ?(RateLimitOptions[]);
/* Options to customize the request context using inversion of control/dependency injection.*/
requestContextMiddleware: ?((req: any, res: any, next: any) => void);
requestContextMiddleware: ?(req: any, res: any, next: any) => void;
}
export interface RateLimitOptions {
@@ -629,6 +629,8 @@ export interface DatabaseOptions {
autoSelectFamily: ?boolean;
/* The MongoDB driver option to specify the amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the autoSelectFamily option. If set to a positive integer less than 10, the value 10 is used instead. */
autoSelectFamilyAttemptTimeout: ?number;
/* 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. */
disableIndexFieldValidation: ?boolean;
}
export interface AuthAdapter {