skip to Main Content

MongoDB Change Stream: How to keep it alive?

I've been trying to implement a change stream that monitors a Mongo collection for new documents. While simple to setup for catching one change, I don't understand how to keep the process running indefinitely. db = pymongo_util.get_collection("DataDB","XYZ_Collection") stream = db.watch(full_document="updateLookup"):…

VIEW QUESTION
Back To Top
Search