Hi

can anyone pls help me with an example of connecting to a MongoDB Atlas
cluster (their cloud service).

My Atlas cluster replica set is at the urls
    yyyy-shard-00-00.xxxxx.mongodb.net:27017
    yyyy-shard-00-01.xxxxx.mongodb.net:27017
    yyyy-shard-00-02.xxxxx.mongodb.net:27017

The MongoDB Atlas website specifies the application connectstring as

    
'mongodb+srv://<username>:<password>@yyyy.xxxxx.mongodb.net/<mydefaultdatabase>?retryWrites=true&w=majority"

I saw the doc / example on pharo-nosql/mongotalk but could not figure out in
MongoClient -

1. how to get embed the username:password in the connectstring which i feel
would be needed,
2. how to specify the default database
3. is it required to specify all three members while Mongo suggests a single
part connect string which probably must be covering the cluster

thanks
  



-----
cheers, 
Sanjay
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply via email to