At the moment, we use the code below to construct the host value for the MongoClient class but this would not work for replica set connection strings.
f"{db_config.protocol}://{db_config.username}:{db_config.password}@{db_config.hostname}:{db_config.port}"
At the moment, we use the code below to construct the
host
value for theMongoClient
class but this would not work for replica set connection strings.f"{db_config.protocol}://{db_config.username}:{db_config.password}@{db_config.hostname}:{db_config.port}"