Hi everyone,
I am working in mern stack web app i have a collection of name “Orders” I want to send notification to admin when ever any document in this collectionupdated/added or deleted how i can do this please
try change stream from mongodb
1 Like
How i can do this can you provide me link for video tutorial or documentation for this
Hi @ali_aboubakr and welcome to MongoDB community forums!!
As @Kobe_W correctly mentioned, you can make use of the change streams in MongoDB to view the documents when undergo any operation.
Please visit the documentation for Change Steams and let us know if you encounter any issues.
Warm Regards
Aasawari