Wasted 20 min on this. in your env file, make sure to add the database name before the ?. like mongodb.net/YOUR_DB_NAME?retryWrites=true&w=majority&appName
. Not sure why but the mongodb/Atlast provided connection string doesnt have that part when you copy.