title: How to get the key from the value in firebase
body: <p>How do I get the key "-KLpcURDV68BcbAvlPFy" when I know the field "name" contains "efg" in the following structure in Firebase.</p>
  
  <pre><code>clubs
      -KLpcURDV68BcbAvlPFy
          dept: "abc"
          desc: "xyz"
          name: "efg"
      -asdasdasddsad
          dept: "asda"
          desc: "asd"
          name: "adddd"
  </code></pre>
  
  <p>I tried this but it returned "clubs"</p>
  
  <pre><code>mDatabase.child("clubs").orderByChild("name").equalTo("efg").addListenerForSingleValueEvent(new ValueEventListener() {
          @Override
          public void onDataChange(DataSnapshot dataSnapshot) {
              String clubkey =dataSnapshot.getKey();
  </code></pre>