Skip to content

Some databaseOptions that are valid MongoDB options are marked as invalid #9523

Closed
@pocketcolin

Description

@pocketcolin

New Issue Checklist

Issue Description

I'm pretty much just adding onto issue #9211 with this issue and already have a PR to address it. There are lots of Mongo config options, but because Parse 7 now validates server config keys we now need to hardcode those options so they pass validation.

Steps to reproduce

const config = {
  ...,
  databaseOptions: {
    connectTimeoutMS: 1000,
    socketTimeoutMS: 1000,
    minPoolSize: 10,
  }
}

Actual Outcome

Error logged:

error: Invalid Option Keys Found: databaseOptions.connectTimeoutMS, databaseOptions.socketTimeoutMS, databaseOptions.minPoolSize

Expected Outcome

No error logged, as these are all valid keys.

Environment

Server

  • Parse Server version: 7.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions