I am using Firebase and my database looks like this:
Users
user1
email: "example1@test.com"
password: "pass1"
display name: "Name1"
user2
email: "example2@test.com"
password: "pass2"
display name: "Name2"
How can I retrieve the email for example, given the display name using Swift 3? (e.g., if I know Name1, the retrieved data will be example1@test.com.)