Well, according to docs, this answer https://stackoverflow.com/a/46639620/2873357, collections and documents should altenate.
I need my data to be structured this way :
"app" :{
"users" :{
"$uid" :{
"notifications":{
"auto-gen-id" :{
"notif-object":{
"type":"",
"subType" : ""
}
}
}
}
}
}
So, as I understand this, this is,
: "app (collections)/
users (document)/
$uid (collections)/
notifications (document)/
auto-gen-id (collections)/
"notif-object" (document)/
type (field),
subType (field)
I can't seem to achieve this sort of a thing in the Firebase console.