我想使用Firebase,在此之前我想知道一些Firebase的東西。假設我有與該組相關的組和用戶示例:Firebase如何刪除相關數據
{
"users":{
"user1":{
"username":"john",
"full_name":"John Vincent",
"created_at":"9th Feb 2015",
"groups":{
"group1":true,
"group3":true
}
"last_logins":...
},
"user2": ...,
"user3": ...
}
"groups": {
"group1"{
"group_name":"Administrators",
"group_description":"Users who can do anything!",
"no_of_users":2,
"members":{
"user1":true,
"user3":true
}
},
"group2"{
"group_name":"Moderators",
"group_description":"Users who can only moderate!",
"no_of_users":1,
"members":{
"user2":true
}
}
}
}
我想知道是否可以將相關用戶刪除到組。可以說,如果我刪除Group2
我想刪除這個例子中的相關用戶user2
?