Sync'ed Realm Write not working with Update trigger


I am witnessing a weird situation where the below code for a sync’ed realm will update the document in Atlas but not trigger the function that I want to invoke on Update.

do {
    try realm.write {
        project.markAsDeleted = true
} catch {

I tried putting the trigger on all 4 operations i.e. Insert, Update, Delete and Replace, but no luck! I also don’t have any match / project expression which can be causing this issue. Furthermore, the trigger does work when I manually update the document from MongoDB Compass app.

Any insights into this behavior is much appreciated. Also, if this is an intended behavior, what is the way to trigger something when a Realm (not MongoDB - which happens via Realm Sync though) update happens!