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.
{"updateDescription.updatedFields.TopLevelArray.NestedArray":{"$exists":true}}
I would like for it to match when anything at all in “NestedArray” is changed.
Any ideas of how I can accomplish this?