Firebase is a suite of tools for web and mobile applications.
Data is saved and queried in a tree structure.
When you:
For a two-way relationship, the relationship needs to be duplicated (ie saved twice). The relationship is saved:
So to delete a user from the group, it has to be updated in two places. This is a necessary redundancy for two-way relationships in order to scale.
Cloud Firestore is a document database.