additionalOptions property

Map<String, String>? additionalOptions
getter/setter pair

Specifies additional options for the MongoDB connection.

The options should be sent as key-value pairs, for example: additional_options = {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}. Keys are case-sensitive and should match the official MongoDB connection string options: https://www.mongodb.com/docs/manual/reference/connection-string-options/ The server will not modify the values provided by the user.

Optional.

Implementation

core.Map<core.String, core.String>? additionalOptions;