My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Do we need to close mongoose connection?

Chetan Kantharia's photo
Chetan Kantharia
·Mar 16, 2018

Do we explicitly need to close mongoose connection after execution?

I am running my NodeJS app with PM2 while debugging I found; after successful query, PM2 restarts my app