Thanks for the reply @Ashishkumar Pandey
Basically the problem here is, our local MongoDB data itself is couple GB's which mean, we can't use the free tier of Mongo atlas (for multiple devs). And it's not just the case of MongoDB right, for other databases also people will face this issue.
I'm curious to know, why do we have to do port forwarding here.
I don't know the full architecture of SST dev environment. But as far as I know, the lambdas are still running in locally with the support of a websocket based proxy technic. That's why we could do the breakpoint based debugging.
So if my above understanding is true, we must able to connect to a local running MongoDB from the local running lambda without port forwarding, right?