title: orderByChild().equalTo() isn't returning the id
body: <pre><code> LiveData&lt;DataSnapshot&gt; questBadgeData = questViewModel.getBadgeSnapshotLiveData(questViewModel.getQuestId());
      Log.d(&quot;sad&quot;,&quot;score calc quest id &quot;+questViewModel.getQuestId());
      questBadgeData.observe(getViewLifecycleOwner(), new Observer&lt;DataSnapshot&gt;() {
          @Override
          public void onChanged(DataSnapshot dataSnapshot) {
              String badgeID = dataSnapshot.getKey();
              Log.d(&quot;sad&quot;,&quot;badge id &quot;+badgeID);
              //String icon = dataSnapshot.child(&quot;icon&quot;).getValue().toString();
              //String name = dataSnapshot.child(&quot;name&quot;).getValue().toString();
              //questViewModel.setBadgeData(badgeID,icon,name);
              questViewModel.setBadgeData(badgeID,&quot;dummy&quot;,&quot;dummy&quot;);
          }
      });
  </code></pre>
  <p>This is the structure of my firebase database:</p>
  <p><img src="https://i.stack.imgur.com/AKp5Q.png" alt="" /></p>
  <pre><code> @NonNull
  public LiveData&lt;DataSnapshot&gt; getBadgeSnapshotLiveData(String qid) {
      Query query = dbBadge.orderByChild(&quot;questid&quot;).equalTo(qid);
      return new FirebaseQueryLiveData(query);
  }
  </code></pre>
  <p>This is my FirebaseQueryLiveData class</p>
  <pre><code>public class FirebaseQueryLiveData extends LiveData&lt;DataSnapshot&gt; {
  private static final String TAG = &quot;FirebaseQueryLiveData&quot;;
  
  private final Query query;
  private final MyValueEventListener listener = new MyValueEventListener();
  
  public FirebaseQueryLiveData(Query query) {
      this.query = query;
  }
  
  public FirebaseQueryLiveData(DatabaseReference ref) {
      this.query = ref;
  }
  
  @Override
  protected void onActive() {
      Log.d(TAG, &quot;onActive&quot;);
      query.addValueEventListener(listener);
  }
  
  private class MyValueEventListener implements ValueEventListener {
      @Override
      public void onDataChange(DataSnapshot dataSnapshot) {
          setValue(dataSnapshot);
      }
  
      @Override
      public void onCancelled(DatabaseError databaseError) {
          Log.e(TAG, &quot;Can't listen to query &quot; + query, databaseError.toException());
      }
  }
  </code></pre>
  <p>}</p>
  <p>As far as I know, I should get 'b1' when I print the log for batch id, when questid = 'q1', however I get 'batch' as the key.</p>
  <pre><code>2020-06-30 17:15:21.864 29487-29487/com.example.activedash D/sad: score calc quest id q1
  2020-06-30 17:15:21.916 29487-29487/com.example.activedash D/sad: badge id badge
  </code></pre>
  <p>When I just put the key as child(key), instead of orderByChild() this works well but I need to get the key of badge through orderByChild()</p>
  <pre><code> @NonNull
  public LiveData&lt;DataSnapshot&gt; getBadgeSnapshotLiveData(String qid) {
      Query query = dbBadge.child(&quot;b1&quot;);
      return new FirebaseQueryLiveData(query);
  }
  </code></pre>