'Get updated value from database
How do I watch for a specifc Mongodb-query? Currently I have tried with collection.watch(), but I am only getting the new value.
An example: user1 = [user3, user4] user2 = [user4]
If user1 follows user2, user2 should get a sign that user1 has followed. When using mongodb .watch(), I am getting [user4, user1] for user2, but I cant "detect" the new follower.
To be clear: I am searching for a solution like Instagram for instance, when someone follows you, you get a message that a user has started to follow you
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
