nocebo-node-mongo
v1.0.0
Published
Nocebo node mongo.
Readme
Express Node Mongo
Handles creation of mongo connections.
Requirements
Needs harmony to be set when used:
node --harmonySetup
Options:
url: String | URL to connect to MongoDB
collection: String | MongoDB Collection
schema: String | MongoDB SchemaExample:
{
"url": "mongodb://localhost:27017/test",
"collection": "houses",
"schema": {
"_id": "String",
"name": "String",
"createdAt": "Date",
"type": {
"type": "String",
"enum": ["apartment","house","unknown"]
}
}
}Test
To run unit tests:
npm test