Hi everyone with my deepest respect. What I want to do is I want to notify when a user inserts a document into MongoDB. I mean when I create a post, the document will be inserted and I want to return a notification to ReactJs. How can I do that? I have watched some of the videos like using change stream. However, I am still having a difficult time returning a notification to the front-end. If you have any tutorial videos or documentation, please kindly provide me with the resource. As I don’t want to use socket.io.
Skip to main content
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
CountDocuments is too slow on huge data (with proper indexes) | 2 | 783 | May 2024 |
Working of `$exists: true` vs `$ne: null` with array fields | 3 | 489 | Jul 2024 |
Server Action return [] from model | 0 | 121 | Aug 2024 |
BulkWriteError handling in Node.JS | 0 | 97 | Aug 2024 |
What is the best practice for connecting a small server to MongoDB | 0 | 19 | Sep 2024 |