fix: GridFSBucketAdapter throws when using some Parse Server specific options in MongoDB database options (#9915)
This commit is contained in:
16
types/Options/index.d.ts
vendored
16
types/Options/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user