Fawn icon indicating copy to clipboard operation
Fawn copied to clipboard

Transactions for MongoDB (See the README)

Results 34 Fawn issues
Sort by recently updated
recently updated
newest added

``` javascript task.update(House, { _id: id }, { latitude, longitude }, { new: true }); task.update(UserHouse, { _id: userHouse.id }, { houseName }, { new: true }); const results =...

I want to .save() the first task and the perform a **bulkWrite** for the second task. Is that possible? Thank you

Hi...I am trying to save data but record saving withoit createdAt, and updatedAt. But when I am saving normally it's saving properly. ``` { timestamps: true } ``` Already added...

so, i have 3 queries, i make the third query error on purpose, but it does not rolling back until the first query, it's just rolling back to the second...

`(node:9525) DeprecationWarning: collection.update is deprecated. Use updateOne, updateMany, or bulkWrite instead.` I use Fawn.Task().update and it shows this, the update operation is being deprecated.

bug
enhancement
priority: high

Not sure what's happening but when I use fawn (viasave) to update a document overriding exiting values to undefined, it's restored to the original value. Transaction results are ok and...

When using viaSave if there is a validation in the database and it fails, I get "MongoError: the update operation document must contain atomic operators.". Eg: `mySchema.pre('validate', function(next) { let...

bug
enhancement
priority: high

is there any way to get the model created or the id generated after using the save function?

NPM reports "found 1 moderate severity vulnerability" │ Moderate │ Prototype Pollution │ │ Package │ mpath │ │ Patched in │ >=0.5.1 │ │ Dependency of │ fawn │...

Comment.findOne({ _id: req.params.commentID }, (err, doc) => { if (err) { res.json({ success: false, message: 'Reply not Saved...Something went Wrong.' }) } else if (!doc) { res.json({ success: false, message:...

bug
enhancement
priority: high