Last active
March 15, 2017 06:53
-
-
Save taylorstine/fd8965e49a6e38f76c812606053b1c9a to your computer and use it in GitHub Desktop.
The right way to connect to mongo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongoose.connect("mongo://yourdatabaseURI:4321", {server: {reconnectTries: Number.MAX_SAFE_INTEGER}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment