i tried to connect my vscode node.js to mongodb compass, the installation is running fine on system but i can't connect to mongodb://localhost:27017, error: MongoNetworkError: connect ECONNREFUSED ::1:27017 keeps popping in my terminal
i changed the ::1 to 127.0.0.1 and the connection was successfully but after i tried to use postman to test my mongodb compass connection it seems it's necessary to run the connection on mongodb://localhost:27017 and not mongodb://127.0.0.1:27017
how can i really maintain the connection on mongodb://localhost:27017 ?