I’d like to use MongoDB in client side (javascript) but I would need to attach to it a lot of events listener (before/after : create,update,delete, etc).
Is MongoDB working with events ? How can I find a documentation about that?
I tried to search for “MongoDB events” in google, but I can only find “Public real life” events.
MongoDB does not have triggers. You can hack together your own solution, but it will only have after-“triggers”.
This involves building a replica set (if you don’t have one yet) and reading replication oplog. Remember, replica set can consist of just one member.