Connections > MongoDB V2 connection properties > Additional connection properties
  

Additional connection properties

You can configure certain additional options in the Additional Properties field in a MongoDB V2 connection that apply for a mapping or a mapping in advanced mode.

Sampling properties

You can configure the following sampling properties in a mapping or a mapping in advanced mode:
samplesize
The number of documents to scan to infer the schema from the MongoDB source.
For example, samplesize=100.
Default is 100.
samplemethod
The method to sample documents to infer the schema from the MongoDB source.
You can specify one of the following methods:

Non-SSL MongoDB deployments

You can configure the following additional properties to connect to non-SSL MongoDB deployments in a mapping or a mapping in advanced mode:
ssl
Determines if the connection uses SSL or non-SSL.
Set this parameter to false in the connection properties to connect to MongoDB deployments that do not use SSL.
Default is true.
authsource
Allows you to provide the database name against which you can authenticate user credentials.
For example, authsource=testadmin.
Default is admin.

Amazon DocumentDB

You can configure the following additional properties to connect to Amazon DocumentDB in a mapping in advanced mode:
ssltruststorefilepath
The absolute path of the truststore file in the Secure Agent machine that contains the keys and certificates required to establish a secure communication.
For example, ssltruststorefilepath= <path_of_truststore_file>
For the serverless runtime environment, specify the following certificate path to the serverless agent directory:
/home/cldagnt/SystemAgent/serverless/configurations/ssl_store/<truststore_filename>
For more information, see Configure SSL for the serverless runtime environment.
ssltruststorepassword
The password for the truststore file required for secure communication.
For example, ssltruststorepassword=<password>.

Bypass schema validation

You can configure the following additional properties to bypass validation rules set for a MongoDB collection in a mapping:
bypassdocumentvalidation
Determines if the connection bypasses validation rules set for a MongoDB collection when you insert, update, or upsert data to MongoDB.
For example, to bypass validation rules, enter bypassdocumentvalidation=true.
If you do not set this parameter, the MongoDB V2 connection uses validation rules defined for the MongoDB collection when you write data to MongoDB.
For more information, see Bypass schema validation in the MongoDB documentation.