Change Streams
say it: “CHAYNJ STREEMZ” /tʃeɪndʒ ˈstrimz/
A real-time feed of changes to a collection.
What is Change Streams?
Change streams let an app subscribe to real-time changes in a collection or database, for syncing or notifications.
const stream = db.collection('orders').watch();
for await (const change of stream) console.log(change.operationType, change.documentKey);
Level: Freelancer · More MongoDB terms at this level
Updated