Previously we were passing in DATABASE_NAME as an argument to mongoclient.db(), derived from environment variables. However, the node driver client.db() function can optionally take no arguments, deriving its initial database connection from the connection URI itself.
.env and deployment configuration files were edited to use the correct database in
their corresponding connection URI's locally.
Summary
Previously we were passing in
DATABASE_NAME
as an argument tomongoclient.db()
, derived from environment variables. However, the node driver client.db() function can optionally take no arguments, deriving its initial database connection from the connection URI itself..env
and deployment configuration files were edited to use the correct database in their corresponding connection URI's locally.