Comments (3)
@AbdelrahmanHafez I believe it works only if u use $set
model.update({_id: XYZ}, {$set: { YOUR_UPDATE_OBJECT }}
from mongoose-diff-history.
Closing as stale, please reopen if you still have this question.
from mongoose-diff-history.
I don't use the plugin anymore, but IMO working just with $set bad DX since mongoose adds $set
internally.
from mongoose-diff-history.
Related Issues (20)
- support for transaction HOT 3
- findOneAndUpdate with upsert: true - throws exception with version 1.6 HOT 6
- UnhandledPromiseRejectionWarning: Error: key $set must not start with '$' HOT 4
- getHistories and getDiffs returned empty array HOT 1
- Problem when saving URL in diff HOT 4
- queryObject.find(...).lean(...).cursor is not a function HOT 3
- License HOT 7
- Problems with Mongoose v5
- Audit User doesnt get populated for update requests. It does work for create but not for any update. HOT 1
- saveDiffHistory dropping some update fields for the currentObject
- Could not run on Typescript project. Does not create history object when i create new object, and when i tried to update old document it got stuck.
- Positional Array Updaters Not Supported ($, $[]) HOT 1
- Can't path options to diffPatcher
- New issue with omit dependency url HOT 1
- mongoose-dff-history doesn't work when create entity
- Omit path not working with array of subdocuments HOT 1
- Can't download package, stuck at "fetchMetadata: sill resolveWithNewModule [email protected] checking installable status"
- New license update not released yet HOT 2
- It does not work in case of Object
- Error: Cannot find module '../package.json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongoose-diff-history.