Listen array mutations in an object

My data model is built like this =>

image

“Script2” represent a chapter of a book.

It’s a recursive model. “Script2” can contains others “Script2” in the array “children”.

My question is how can I listen array mutation events globally for all the possible chidren array.
The user can create a tree with many deep without limit.

I tried to use the model changed event like this.

I have the relativePath property. It’s very helpful but I don’t have the type of mutation on the array children. The Array mutation events are propagated only with RealtimeArrays.

https://docs.convergence.io/js-api/interfaces/real_time_data.realtimearrayevents.html

Do you have a tips about that ?

I just found the childEvent property :smiley:

I’m fan of your platform. You do a very cool tool.

Great! Generally speaking, you want to listen to events in the most granular way possible for performance reasons.