In the process of creating a new application with JS, Node.JS, Express, and MongoDB, I am implementing a feature where users can purchase listings. These listings are stored as documents in a MongoDB database. My goal is to have the listings automatically "expire" after a specific period of time, such as 30 days. One approach I am considering is adding a boolean field named "expired" to the document that starts as false but switches to true once the expiration time elapses. Is there a way to use JavaScript to associate a timer with each listing and then update the database accordingly when the timer runs out?