For the context I'm using firebase/nodeJS on my application.
I'm deleting an user of a collection called workers. To do so I update the field deleted : true on the worker document. I'm not deleting the document, because I want to keep their infos if needed. But when I delete a worker, I must remove him from all the properties is working on (they have a field called workers, which is an array of all the workers associated.)
Hence, I must browse all the properties of the collection associated, check if the worker is on it and remove him.
Is there a way to do so ? I saw this page : https://firebase.google.com/docs/firestore/manage-data/add-data#node.js_11 But don't know how to use theses ressources to do so.