My Firebase data structure is made as shown here:

I want to iterate and search for a specific user email address.
I've tried using dataSnapshot but after hours of work I ended up with nothing.
Would appreciate any help or examples.
Thank you.
My Firebase data structure is made as shown here:

I want to iterate and search for a specific user email address.
I've tried using dataSnapshot but after hours of work I ended up with nothing.
Would appreciate any help or examples.
Thank you.
 
    
     
    
    Your current structure allows you to easily find the users for a specific business. It does not however allow you to easily find a business for a specific user, or find a specific user across all businesses.
To allow the latter you'll want to store a flat list of users, so that you can search across that. A top-level node like this could work for this use case:
Users: {
  "$uid": {
    "email": "test@g.com",
    "business": "test (1593695305)",
    ...
  }
}
Also see:
