I have an application with the following firestore data structure:
- groups
- groupId
- members
- memberId
- members
- groupId
Now, when I want to delete a group, all it's members must be deleted accordingly. When I do this with a batched delete, the possibility exists that, when the client is offline, in the meanwhile new members are added so not everything will be deleted properly. How can I achieve this so everything about the group is properly removed ?