getDbConnection: Utility to get a connection to a MongoDb

Description Usage Arguments

Description

For now this just connects to MongoDb. No authentication or anything like that. In a future update I'll let people specify better granularity, but for now this works pretty well.

Usage

1
getDbConnection(collection, dataUri)

Arguments

collection

the collection to update. You should never worry about this as there are 2 collections used by this app, "evaluations" and "models". If you mess with that then you are going to break things.

dataUri

the URI of the mongoDb to use. Note just the URL is needed for now.


cwhd/hdp-r documentation built on May 9, 2019, 4:57 a.m.