Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

154
Views
unmarkmodified seems to have no impact

It seems like the document.prototype.unmarkModified() function does not work properly. I am using mongoose version 6.2.4

The following code

device.markModified('sipp');
device.unmarkModified('sipp.queue');
console.log(device.modifiedPaths({ includeChildren: true }))

results in the following log.

[
  'sipp',
  'sipp.counters',
  'sipp.destination',
  'sipp.ts',
  'sipp.version',
  'sipp.connector',
  'sipp.parameters',
  'sipp.priorityMessages',
  'sipp.queue',
  'sipp.software',
  'sipp.state'
]

I expected the log to not include the sipp.queue in the modified paths list. We don't want to update the queue because of timing issues and therefor update (using $push, $pop etc.) the queue immediately.

The documentation on unmarkModified is limited, so it might just be a misunderstanding on my side.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!