Data Engineering, Data Science, Mongodb, Python, DevOps.
MongoClient("mongodb://127.0.0.1:27019/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.10.5&readPreference=secondary") Notice that we are using the connection string given to us by the mongo shell in the previous step. We can now interact with our MongoDB nodes using these