File tree Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -38,16 +38,16 @@ export const DefaultMongoURI = DefinitionDefaults.databaseURI;
3838// before passing to MongoDB client
3939export const ParseServerDatabaseOptions = [
4040 'allowPublicExplain' ,
41- 'enableSchemaHooks' ,
42- 'schemaCacheTtl' ,
43- 'maxTimeMS' ,
44- 'disableIndexFieldValidation' ,
45- 'logClientEvents' ,
46- 'createIndexUserUsername' ,
47- 'createIndexUserUsernameCaseInsensitive' ,
41+ 'createIndexRoleName' ,
4842 'createIndexUserEmail' ,
4943 'createIndexUserEmailCaseInsensitive' ,
5044 'createIndexUserEmailVerifyToken' ,
5145 'createIndexUserPasswordResetToken' ,
52- 'createIndexRoleName' ,
46+ 'createIndexUserUsername' ,
47+ 'createIndexUserUsernameCaseInsensitive' ,
48+ 'disableIndexFieldValidation' ,
49+ 'enableSchemaHooks' ,
50+ 'logClientEvents' ,
51+ 'maxTimeMS' ,
52+ 'schemaCacheTtl' ,
5353] ;
Original file line number Diff line number Diff line change @@ -228,9 +228,20 @@ export interface FileUploadOptions {
228228}
229229export interface DatabaseOptions {
230230 // Parse Server custom options
231+ allowPublicExplain ?: boolean ;
232+ createIndexRoleName ?: boolean ;
233+ createIndexUserEmail ?: boolean ;
234+ createIndexUserEmailCaseInsensitive ?: boolean ;
235+ createIndexUserEmailVerifyToken ?: boolean ;
236+ createIndexUserPasswordResetToken ?: boolean ;
237+ createIndexUserUsername ?: boolean ;
238+ createIndexUserUsernameCaseInsensitive ?: boolean ;
239+ disableIndexFieldValidation ?: boolean ;
231240 enableSchemaHooks ?: boolean ;
241+ logClientEvents ?: any [ ] ;
242+ // maxTimeMS is a MongoDB option but Parse Server applies it per-operation, not as a global client option
243+ maxTimeMS ?: number ;
232244 schemaCacheTtl ?: number ;
233- allowPublicExplain ?: boolean ;
234245
235246 // MongoDB driver options
236247 appName ?: string ;
@@ -250,7 +261,6 @@ export interface DatabaseOptions {
250261 maxIdleTimeMS ?: number ;
251262 maxPoolSize ?: number ;
252263 maxStalenessSeconds ?: number ;
253- maxTimeMS ?: number ;
254264 minPoolSize ?: number ;
255265 proxyHost ?: string ;
256266 proxyPassword ?: string ;
You can’t perform that action at this time.
0 commit comments