8000 grial/connector-mongodb at master · sergiodxa/grial · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 2, 2017. It is now read-only.

Latest commit

 

History

History

connector-mongodb

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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

0