Remove .rawCollection method from DatabaseController.

This commit is contained in:
Nikita Lutsenko
2016-03-07 14:16:26 -08:00
parent 7909f0efe0
commit f2ead46580
3 changed files with 11 additions and 15 deletions

View File

@@ -64,6 +64,10 @@ export default class MongoCollection {
return this._mongoCollection.update(query, update, { upsert: true });
}
updateMany(query, update) {
return this._mongoCollection.updateMany(query, update);
}
// Atomically find and delete an object based on query.
// The result is the promise with an object that was in the database before deleting.
// Postgres Note: Translates directly to `DELETE * FROM ... RETURNING *`, which will return data after delete is done.