I have a realm function built firing off a database trigger. I need to add a match expression to filter the trigger, otherwise it will run on a continuous loop because it is updating the same collection that triggers it.
So my match expression is this:
{“updateDescription.updatedFields.profile”:{"$exists":true}}
When I go into my collection and update a document’s “profile” field, nothing happens. When I take away the match expression, it runs all the time, but it runs in a continuous loop like mentioned before.
Any ideas? Thanks!