overleaf/services/docstore/app/coffee/mongojs.coffee
2014-04-29 16:36:10 +01:00

7 lines
186 B
CoffeeScript

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