mark has "not modified" on doc
See original GitHub issueI’ve been through the entire API but still
In a pre('save')
,if one of my field is modified doc.isModified('myField')
how can we mark that field as not modified in order to remove that field in the update query. I don’t want to remove the field in the db with doc.myField = undefined
, just omit the save on that field.
a good way wood be doc.markNotModified('field')
any idea ? thanks
Issue Analytics
- State:
- Created 10 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Track changes in Word - Microsoft Support
When Track Changes is off, the section is not highlighted. Word stops marking changes, but the colored underlines and strikethroughs are still in...
Read more >Document is modified when opened/Markdown formatting
I am glad that it is considered a bug that unmodified document buffers are marked as modified. However, the unmodified document being marked...
Read more >This modification is not allowed because the selection is locked.
In order to make changes, the document just needs to be “un-finalized.” Go back to the Office button -> Prepare menu and click...
Read more >Google Drive does not preserve file modified date / time
Google Drive does not preserve file modified date when copying and overwriting an existing file. The file modified date is an important piece...
Read more >The Mark Text element - HTML: HyperText Markup Language
The presence of the mark element is not announced by most screen reading technology in its default configuration. It can be made to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Note that for people finding this issue, the method is actually called
unmarkModified()
Fixed in 4.5.0.