DEV Community

Discussion on: How to initialize a Singleton mongo connection with expressjs

Collapse
 
perigk profile image
Periklis Gkolias

Your approach looks very interesting. And cleverly simple as hell. I was trying to do it strictly with await calling anonymous functions on the fly, but this looks very promising :)

Thanks a lot

Collapse
 
avalander profile image
Avalander

Glad it helped :)

this looks very promising

I hope this was an intended pun :D

Thread Thread
 
perigk profile image
Periklis Gkolias

hahaha, no I just noticed what I did :D