Yes, I did something similar.
But how does MongoDB handle connections?
The connection is not closed here and since an api route will be deployed to aws lambda, there could be many open connections.
Could that cause problems?
1 Like