Properly close mongoose’s connection once you’re done

You can close the connection with

mongoose.connection.close()

Leave a Comment