title: What is the difference between MongoDB Realm Triggers and MongoDB Atlas Triggers?
body: <p>So both of them are part of MongoDB features that I think have common nature. In my case, every time a document is created or updated, it will trigger a function that will update the document field with <code>Date.now()</code> timestamp.</p>
  <p>It can be achieved using a trigger, but there are 2 ways to do it, and I am not sure which one is suitable to choose. What is the difference between <a href="https://docs.mongodb.com/realm/triggers/" rel="nofollow noreferrer">MongoDB Realm Trigger</a> and <a href="https://docs.atlas.mongodb.com/triggers/" rel="nofollow noreferrer">MongoDB Atlas Trigger</a>? Advantages over each other?</p>
  <p>Thank You</p>