1.1.5 • Published 6 years ago

mongoose-handler-nt v1.1.5

Weekly downloads
1
License
ISC
Repository
gitlab
Last release
6 years ago

MongooseHandler

This module handles a simple connection with Mongoose to a MongoDB server.

Installation

$ npm install mongoose-handler-nt --save

Usage

  • connect(config)

Example of config

  {
    "HOST": "127.0.0.1",
    "PORT": "27017",
    "DB_NAME": "DATABASE",
    "USERNAME": "USERNAME",
    "PASSWORD": "PASSWORD",
    "PARAMS": "?ssl=true"
  }
  • connectWithString(connectionString)

The connectionString must be in the MongoDB format https://docs.mongodb.com/manual/reference/connection-string/.

Then, you just need to insert mongoose in the files that will use it.

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago