0👍
✅
Ok, I found the answer:
Firebase snapshot key was design this way: firebase key website
Accessing the key on any DataSnapshot will return the key for the location that generated it. However, accessing the key on the root URL of a Database will return null.
So it’s it obligates us to relate it to a key inside the object which makes the firebase real-time DB really insecure
here is another picture to describe the bad design problem:
real time design of key herarchy
that anyone know if mongo DB has this issue?
Source:stackexchange.com