I'm making a community app. I want the function. -> When user A blocks user B user A immediately can not see user B's posts and comments.
So I search for it. -> How to block users on Firebase in a social media app? for iOS
In this advice, I have to make data structure like this.
users:
uid1:
my data: {
// some stuff here
}
uid2:
my data: {
// some stuff here
}
I want to make my data structure like this. But I'm using google auth like this.
How can I copy this users info to the database structure? And can't firebase rules refer to screenshot's info?