mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 18:53:44 -05:00
c14467b87a
GitOrigin-RevId: c5abb64729530baecbee0eb589eaed39faa2ac56
12 lines
281 B
JavaScript
12 lines
281 B
JavaScript
import Settings from '@overleaf/settings'
|
|
import { MongoClient } from 'mongodb'
|
|
|
|
export { ObjectId } from 'mongodb'
|
|
|
|
export const mongoClient = new MongoClient(Settings.mongo.url)
|
|
|
|
const mongoDb = mongoClient.db()
|
|
|
|
export const db = {
|
|
contacts: mongoDb.collection('contacts'),
|
|
}
|