I can connect to MongoDB Atlas using MongoLink in a notebook. But when I use the same code in the Wolfram Cloud, it fails. The behavior is similar to when I don't include "CAFile"->$MongoDefaultCAFile"
in my Notebook code. I've ensured that the Wolfram Cloud is whitelisted (currently no IP is restricted)
client = MongoConnect[<|
"Host" -> "mongodb://<user>:<password>@<cluster>.mongodb.net:27017",
"CAFile" -> $MongoDefaultCAFile|>]
projCol = MongoGetCollection[client["Lab"], "Projects"]
MongoCollectionFindOne[projCol, <||>]
This returns a document from the collection in the Notebook, but it returns Null
in the cloud. (MongoClient and MongoCollection objects are returned for the first two lines).
Is there a reason \ $MongoDefaultCAFile can't be passed correctly in the cloud? On the cloud, \$MongoDefaultCAFile is
File["/Applications/Mathematica 11.3.app/Contents/SystemFiles/Links/MongoLink/LibraryResources/MacOSX-x86-64"]