WIP
This commit is contained in:
@@ -52,7 +52,7 @@ export default class MongoCollection {
|
||||
// If there is nothing that matches the query - does insert
|
||||
// Postgres Note: `INSERT ... ON CONFLICT UPDATE` that is available since 9.5.
|
||||
upsertOne(query, update) {
|
||||
return this._mongoCollection.update(query, update, { upsert: true });
|
||||
return this._mongoCollection.update(query, update, { upsert: true })
|
||||
}
|
||||
|
||||
updateOne(query, update) {
|
||||
|
||||
Reference in New Issue
Block a user