0

I'm trying to build an angular2 application using mean stack architecture,I got a field Remaining days in my database mongodb,I want that field decrement 1 every day. Is that possible?

Community
  • 1
  • 1
Laamiri Oussema
  • 527
  • 2
  • 8
  • 25

1 Answers1

0

Please check this stackoverflow link :

Event scheduler (cronjob) in MongoDB?

You might have to write an external job scheduler and update the field in mongodb.

Community
  • 1
  • 1
Gayatri
  • 53
  • 5