📄️ Document Insert
Triggers or Change Streams as they are known in MongoDB are a way to listen to changes in the database and react to them. Elemental abstracts this concept and integrates it directly into the model you create.
📄️ Document Update
The Model.onUpdate method allows you to listen to when a document corresponding to the model is updated in the database.
📄️ Document Replace
The Model.OnReplace method allows you to listen to when a document corresponding to the model is replaced in the database.
📄️ Document Delete
The Model.OnDelete method allows you to listen to when a document corresponding to the model is deleted in the database.
📄️ Collection Drop
The Model.OnCollectionDrop method allows you to listen to when the collection corresponding to the model is dropped in the database.
📄️ Collection Rename
The Model.OnCollectionRename method allows you to listen to when the collection corresponding to the model is renamed in the database.
📄️ Stream Invalidate
The Model.OnStreamInvalidate method allows you to listen for stream invalidation events.