fix: GridFSBucketAdapter throws when using some Parse Server specific options in MongoDB database options (#9915)

This commit is contained in:
Manuel
2025-11-08 18:41:45 +01:00
committed by GitHub
parent 502a512028
commit d3d4003570
5 changed files with 53 additions and 28 deletions

View File

@@ -228,9 +228,21 @@ export interface FileUploadOptions {
}
export interface DatabaseOptions {
// Parse Server custom options
allowPublicExplain?: boolean;
createIndexRoleName?: boolean;
createIndexUserEmail?: boolean;
createIndexUserEmailCaseInsensitive?: boolean;
createIndexUserEmailVerifyToken?: boolean;
createIndexUserPasswordResetToken?: boolean;
createIndexUserUsername?: boolean;
createIndexUserUsernameCaseInsensitive?: boolean;
disableIndexFieldValidation?: boolean;
enableSchemaHooks?: boolean;
logClientEvents?: any[];
// maxTimeMS is a MongoDB option but Parse Server applies it per-operation, not as a global client option
maxTimeMS?: number;
schemaCacheTtl?: number;
// MongoDB driver options
appName?: string;
authMechanism?: string;
@@ -238,7 +250,6 @@ export interface DatabaseOptions {
authSource?: string;
autoSelectFamily?: boolean;
autoSelectFamilyAttemptTimeout?: number;
allowPublicExplain?: boolean;
compressors?: string[] | string;
connectTimeoutMS?: number;
directConnection?: boolean;
@@ -250,7 +261,6 @@ export interface DatabaseOptions {
maxIdleTimeMS?: number;
maxPoolSize?: number;
maxStalenessSeconds?: number;
maxTimeMS?: number;
minPoolSize?: number;
proxyHost?: string;
proxyPassword?: string;