MongoDB V2 Connector > Connections for MongoDB V2 > 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 in advanced mode.

Sampling properties

You can configure the following sampling properties:
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:
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:
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>.