question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mark has "not modified" on doc

See original GitHub issue

I’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:closed
  • Created 10 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
adamreisnzcommented, Apr 25, 2017

Note that for people finding this issue, the method is actually called unmarkModified()

1reaction
vkarpov15commented, Jun 18, 2016

Fixed in 4.5.0.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found