My current task involves retrieving a Firebase document property based on the specified model:
After successfully locating a document with this code snippet:
//Users - collection name, uid - document uid.
I am attempting to access the isAdmin property using the following line of code:
However, I keep receiving an undefined result.
Can anyone suggest how this issue can be resolved? My goal is to retrieve the value of the isAdmin
property, but I'm unsure of the correct approach.