Data Engineering, Data Science, Mongodb, Python, DevOps.
clients. For example, let’s print the existing databases in the system: print(master_client.list_database_names()) # Output: ['admin', 'config', 'local'] We can also verify which nodes are the master and which are the secondary read-only workers. print(master_client.read_preference)