title: How to get the name of the parent node from the values of child nodes?
body: <p>Here is the preview of the tree:</p>
  
  <p><a href="https://i.stack.imgur.com/MtBVa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MtBVa.png" alt="enter image description here"></a></p>
  
  <p>I tried to do this:</p>
  
  <pre><code>mRef.orderByChild("desc").equalTo(des).addChildEventListener(new ChildEventListener()
  {
      @Override
      public void onChildAdded(DataSnapshot dataSnapshot, String s)
      {
          mRef.orderByChild("userid").equalTo(uid).addChildEventListener(new ChildEventListener() {
              @Override
              public void onChildAdded(DataSnapshot dataSnapshot, String s)
              {
                  myParentNode = dataSnapshot.getKey();
              }
      });
  });
  </code></pre>
  
  <p>But it returns the value of the previously visited node.</p>
  
  <p>Note: The Parent node "ASSIST Blog" contains many children which may have similar values.</p>