pub fn build_client_string(server: &str) -> String
Expand description

Generates a string to connect to MongoDB, given a server endpoint (e.g. localhost:27017). This function assumes that MongoDB was configured with the credentials of a user root with password mongo.

TODO

The default configuration for user and password could open a security hole if not accessing a database spawned using Docker Compose or Kubernetes. Consider changing this on the future.