MongoLink`
MongoLink`
MongoConnect
create a client object MongoClient using hostname "localhost" and port number 27017.
MongoConnect[host]
create a MongoClient using hostname host.
MongoConnect[assoc]
create a MongoClient using the components in the association assoc.
Details and Options
- To use MongoConnect, you first need to load MongoLink using Needs["MongoLink`"].
- The association assoc has the following components:
-
"Host" "localhost" connection hostname. "Port" 27017 connection port. "Username" None username to use for connection. "Password" None password to use for connection. "SSL" Automatic whether to enable SSL. VerifySecurityCertificates True whether to verify the validity of SSL certificate files. "AllowInvalidHostname" False whether to disable hostname validation. "CAFile" None the path to a Certificate Authority file. "CertificateRevocationList" None path to a PEM or DER formatted certificate revocation list. "PEMFile" None path to a PEM file. "PEMFilePassword" None password for PEM file. - "Password"->"$Prompt" opens a dialog box that will prompt the user for the password. This can help keep the password more secure.
- To use MongoConnect to connect to MongoDB Atlas, follow the instructions here to obtain a URI connection string (eg "mongodb+srv://kay:myRealPassword@cluster0.mongodb.net/"). Using this URI and the default Certificate Authority file included in MongoLink $MongoDefaultCAFile, connect via MongoConnect[<"Host"->"mongodb+srv://kay:myRealPassword@cluster0.mongodb.net/","CAFile" $MongoDefaultCAFile >].
Examples
Wolfram Research (2018), MongoConnect, Wolfram Language function, https://reference.wolfram.com/language/MongoLink/ref/MongoConnect.html.
Text
Wolfram Research (2018), MongoConnect, Wolfram Language function, https://reference.wolfram.com/language/MongoLink/ref/MongoConnect.html.
CMS
Wolfram Language. 2018. "MongoConnect." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/MongoLink/ref/MongoConnect.html.
APA
Wolfram Language. (2018). MongoConnect. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/MongoLink/ref/MongoConnect.html