Realm Trigger match on nested array update

I’m trying to have a trigger fire when a nested array is updated. I can’t seem to get the match statement to fire when this array is modified. This is basically what is returned in the change event.

  {"updatedFields":{"TopLevelArray.1.NestedArray.0.desc":"Test Value"},"removedFields\":[]}

I’m trying to match with the following but it doesn’t seem to work since the indexes are in the “updatedFields” document.


I would like for it to match when anything at all in “NestedArray” is changed.

Any ideas of how I can accomplish this?

Hi @Tyler_Queen,

I will need to test that to see if it’s possible.on trigger level , but have you considered parsing on trigger function and acting only on specific document?


Yes, I’m doing that in the attached function I just don’t want the trigger to fire every time the collection is updated.

Hi @Tyler_Queen ,

I could not find a way to do this on the match trigger expression as the field has a string path with “.” in its key :frowning:

So the only way I see is at the moment is in the function…