Collection de maintien nœud-mongodb-native
db.collection('user', function (err, collection) {
app.get('/route', function (req, res) {
collection.find(blah) // do something
}
app.get('/route2', function (req, res) {
collection.find(foo) // do something
}
app.get('/route3', function (req, res) {
collection.find(bar) // do something
}
}
SAMER SAEID