Sign in
Log inSign up

How to handle Db connection in NODE?

Milton Akash's photo
Milton Akash
·Dec 8, 2017

I am doing an app using Node - Mongo - Graphql. So which is the best way to establish connections. Suppose if i make a db connection intially and if it fails in any case how can i reconnect it . Any other better way? Prons and cons of this method

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct