How to get the key where `UID` be equal to: `firebase.auth().currentUser.uid`, because I can update this information when the user enters new data.

How to update the information? I use `orderByChild` and equal and set, but don't work.

[![enter image description here](https://i.stack.imgur.com/oiznA.png)](https://i.stack.imgur.com/oiznA.png)

My code: 

```
updateUserInformation() {
  var ref = firebase.database().ref('/users/');
  ref.on('value', (snapshot) => {
    snapshot.forEach((child) => {
      if (child.val().UID == firebase.auth().currentUser.uid) {
        this.profileData = [{
          name: child.val().name,
          lastname: child.val().lastname,
          phone: child.val().phone,
          direction: child.val().direction,
          followQuantity: child.val().followQuantity,
          points: child.val().points,
          sex: child.val().sex,
        }];
        this.cdRef.detectChanges();
      }
    });
  })
}

```