Settings = require "settings-sharelatex" mongojs = require "mongojs" db = mongojs.connect(Settings.mongo.url, ["docHistory", "docOps"]) module.exports = db: db ObjectId: mongojs.ObjectId