@grial/connector-mongodb

1.0.1 • Public • Published

@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.

Package Sidebar

Install

npm i @grial/connector-mongodb

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • sergiodxa