Grial datasource connector for MongoDB.
- 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
Install it
npm i @grial/connector-mongodb
Add it to your connectors.js
files
exports.mongodb = require('@grial/connector-mongodb')
It use the mongodb
package and it return a connection instance.