npm.io
1.0.1 • Published 8 years ago

@grial/connector-mongodb

Licence
MIT
Version
1.0.1
Deps
1
Vulns
1
Weekly
0
Stars
189

@grial/connector-mongodb

Grial datasource connector for MongoDB.

Required enviroment variables

  • MONGO_USER => the MongoDB database user
  • MONGO_PASS => the MongoDB database password
  • MONGO_HOST => the MongoDB database host (default: localhost)
  • MONGO_NAME => the MongoDB database name
  • MONGO_URL => the MongoDB full URL, if it's not defined use the above variables

Usage

Install it

npm i @grial/connector-mongodb

Add it to your connectors.js files

exports.mongodb = require('@grial/connector-mongodb')

API

It use the mongodb package and it return a connection instance.