| Name | Type | Description |
|---|---|---|
allowPublicExplain | Boolean | Set to |
appName | String | The MongoDB driver option to specify the name of the application that created this MongoClient instance. |
authMechanism | String | The MongoDB driver option to specify the authentication mechanism that MongoDB will use to authenticate the connection. |
authMechanismProperties | Any | The MongoDB driver option to specify properties for the specified authMechanism as a comma-separated list of colon-separated key-value pairs. |
authSource | String | The MongoDB driver option to specify the database name associated with the user's credentials. |
autoSelectFamily | Boolean | The MongoDB driver option to set whether the socket attempts to connect to IPv6 and IPv4 addresses until a connection is established. If available, the driver will select the first IPv6 address. |
autoSelectFamilyAttemptTimeout | Number | The MongoDB driver option to specify the amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the autoSelectFamily option. If set to a positive integer less than 10, the value 10 is used instead. |
batchSize | Number | The number of documents per batch for MongoDB cursor |
clientMetadata | DatabaseOptionsClientMetadata | Custom metadata to append to database client connections for identifying Parse Server instances in database logs. If set, this metadata will be visible in database logs during connection handshakes. This can help with debugging and monitoring in deployments with multiple database clients. Set |
compressors | Union | The MongoDB driver option to specify an array or comma-delimited string of compressors to enable network compression for communication between this client and a mongod/mongos instance. |
connectTimeoutMS | Number | The MongoDB driver option to specify the amount of time, in milliseconds, to wait to establish a single TCP socket connection to the server before raising an error. Specifying 0 disables the connection timeout. |
createIndexRoleName | Boolean | Set to |
createIndexUserEmail | Boolean | Set to |
createIndexUserEmailCaseInsensitive | Boolean | Set to |
createIndexUserEmailVerifyToken | Boolean | Set to |
createIndexUserPasswordResetToken | Boolean | Set to |
createIndexUserUsername | Boolean | Set to |
createIndexUserUsernameCaseInsensitive | Boolean | Set to |
directConnection | Boolean | The MongoDB driver option to force a Single topology type with a connection string containing one host. |
disableIndexFieldValidation | Boolean | Set to |
enableSchemaHooks | Boolean | Enables database real-time hooks to update single schema cache. Set to |
forceServerObjectId | Boolean | The MongoDB driver option to force server to assign _id values instead of driver. |
heartbeatFrequencyMS | Number | The MongoDB driver option to specify the frequency in milliseconds at which the driver checks the state of the MongoDB deployment. |
loadBalanced | Boolean | The MongoDB driver option to instruct the driver it is connecting to a load balancer fronting a mongos like service. |
localThresholdMS | Number | The MongoDB driver option to specify the size (in milliseconds) of the latency window for selecting among multiple suitable MongoDB instances. |
logClientEvents | Array.<LogClientEvent> | An array of MongoDB client event configurations to enable logging of specific events. |
maxConnecting | Number | The MongoDB driver option to specify the maximum number of connections that may be in the process of being established concurrently by the connection pool. |
maxIdleTimeMS | Number | The MongoDB driver option to specify the amount of time in milliseconds that a connection can remain idle in the connection pool before being removed and closed. |
maxPoolSize | Number | The MongoDB driver option to set the maximum number of opened, cached, ready-to-use database connections maintained by the driver. |
maxStalenessSeconds | Number | The MongoDB driver option to set the maximum replication lag for reads from secondary nodes. |
maxTimeMS | Number | The MongoDB driver option to set a cumulative time limit in milliseconds for processing operations on a cursor. |
minPoolSize | Number | The MongoDB driver option to set the minimum number of opened, cached, ready-to-use database connections maintained by the driver. |
proxyHost | String | The MongoDB driver option to configure a Socks5 proxy host used for creating TCP connections. |
proxyPassword | String | The MongoDB driver option to configure a Socks5 proxy password when the proxy requires username/password authentication. |
proxyPort | Number | The MongoDB driver option to configure a Socks5 proxy port used for creating TCP connections. |
proxyUsername | String | The MongoDB driver option to configure a Socks5 proxy username when the proxy requires username/password authentication. |
readConcernLevel | String | The MongoDB driver option to specify the level of isolation. |
readPreference | String | The MongoDB driver option to specify the read preferences for this connection. |
readPreferenceTags | Array.<Any> | The MongoDB driver option to specify the tags document as a comma-separated list of colon-separated key-value pairs. |
replicaSet | String | The MongoDB driver option to specify the name of the replica set, if the mongod is a member of a replica set. |
retryReads | Boolean | The MongoDB driver option to enable retryable reads. |
retryWrites | Boolean | The MongoDB driver option to set whether to retry failed writes. |
schemaCacheTtl | Number | The duration in seconds after which the schema cache expires and will be refetched from the database. Use this option if using multiple Parse Servers instances connected to the same database. A low duration will cause the schema cache to be updated too often, causing unnecessary database reads. A high duration will cause the schema to be updated too rarely, increasing the time required until schema changes propagate to all server instances. This feature can be used as an alternative or in conjunction with the option |
serverMonitoringMode | String | The MongoDB driver option to instruct the driver monitors to use a specific monitoring mode. |
serverSelectionTimeoutMS | Number | The MongoDB driver option to specify the amount of time in milliseconds for a server to be considered suitable for selection. |
socketTimeoutMS | Number | The MongoDB driver option to specify the amount of time, in milliseconds, spent attempting to send or receive on a socket before timing out. Specifying 0 means no timeout. |
srvMaxHosts | Number | The MongoDB driver option to specify the maximum number of hosts to connect to when using an srv connection string, a setting of 0 means unlimited hosts. |
srvServiceName | String | The MongoDB driver option to modify the srv URI service name. |
ssl | Boolean | The MongoDB driver option to enable or disable TLS/SSL for the connection (equivalent to tls option). |
tls | Boolean | The MongoDB driver option to enable or disable TLS/SSL for the connection. |
tlsAllowInvalidCertificates | Boolean | The MongoDB driver option to bypass validation of the certificates presented by the mongod/mongos instance. |
tlsAllowInvalidHostnames | Boolean | The MongoDB driver option to disable hostname validation of the certificate presented by the mongod/mongos instance. |
tlsCAFile | String | The MongoDB driver option to specify the location of a local .pem file that contains the root certificate chain from the Certificate Authority. |
tlsCertificateKeyFile | String | The MongoDB driver option to specify the location of a local .pem file that contains the client's TLS/SSL certificate and key. |
tlsCertificateKeyFilePassword | String | The MongoDB driver option to specify the password to decrypt the tlsCertificateKeyFile. |
tlsInsecure | Boolean | The MongoDB driver option to disable various certificate validations. |
waitQueueTimeoutMS | Number | The MongoDB driver option to specify the maximum time in milliseconds that a thread can wait for a connection to become available. |
zlibCompressionLevel | Number | The MongoDB driver option to specify the compression level if using zlib for network compression (0-9). |
DatabaseOptions
Properties
