title: Create Query for getting value equals to Current User id
body: <p>I want to get all matching values with current user id from key "group_member". The key "group_member" consist of users id. Database screenshot:</p>
  
  <p><a href="https://i.stack.imgur.com/pNqyx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pNqyx.png" alt="enter image description here"></a></p>
  
  <p>For this, i create query   <code>Query query = mGroupDatabase.child("group_member").equalTo(mCurrent_user_id);</code></p>
  
  <p>but not getting any result. 
  afterwards, this result needs to shown into RecyclerView. </p>
  
  <pre><code>mGroupList = (RecyclerView) mMainView.findViewById(R.id.group_list);
  
          mAuth = FirebaseAuth.getInstance();
          mCurrent_user_id = mAuth.getCurrentUser().getUid();
  
          mGroupDatabase = FirebaseDatabase.getInstance().getReference().child("Groups");
          LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getContext());
          linearLayoutManager.setReverseLayout(true);
          linearLayoutManager.setStackFromEnd(true);
  
          mGroupList.setHasFixedSize(true);
          mGroupList.setLayoutManager(linearLayoutManager);
  
          Query query = mGroupDatabase.child("group_member").equalTo(mCurrent_user_id);
          query.keepSynced(true);
  
          FirebaseRecyclerOptions&lt;Group&gt; options =
                  new FirebaseRecyclerOptions.Builder&lt;Group&gt;()
                          .setQuery(query, Group.class)
                          .build();
  
          firebaseRecyclerAdapter = new FirebaseRecyclerAdapter&lt;Group, ViewHolder&gt;(options) {
              @Override
              public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
                  // Create a new instance of the ViewHolder, in this case we are using a custom
                  // layout called R.layout.message for each item
                  View view = LayoutInflater.from(parent.getContext())
                          .inflate(R.layout.adapter_users_activity_layout, parent, false);
  
                  return new ViewHolder(view);
              }
  
              @Override
              protected void onBindViewHolder(final ViewHolder viewHolder, int position, final Group group) {
  
                  Log.d("sdfdfgghhjhj", group.getGroup_member());
  
  @Override
      public void onStart() {
          super.onStart();
          firebaseRecyclerAdapter.startListening();
      }
  
      @Override
      public void onStop() {
          super.onStop();
  
          if (firebaseRecyclerAdapter != null) {
              firebaseRecyclerAdapter.stopListening();
          }
      }
  </code></pre>
  
  <p>in above code, <code>Log.d("sdfdfgghhjhj", group.getGroup_member());</code> doesnt give any value. </p>
  
  <p>Group:</p>
  
  <pre><code>package com.example.messenger.messenger;
  
  public class Group {
      String name, group_member;
  
      public Group() {
  
      }
  
      public Group(String name, String group_member) {
          this.name = name;
          this.group_member = group_member;
      }
  
      public String getGroup_member() {
          return group_member;
      }
  
      public void setGroup_member(String group_member) {
          this.group_member = group_member;
      }
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  }
  </code></pre>