title: How to retrieve only specific attributes on Firebase?
body: <p>I have a Firebase database which stores users data such as id, points, nickname.. Now I have created a leaderboard where I only need a few (nick, points), right now I use something like this:</p>
  
  <pre><code>    DatabaseReference mDatabase = FirebaseDatabase.getInstance().getReference("users");
      Query query = mDatabase.orderByChild("points");
      //initialize Firebase adapter
      ListAdapter adapter = new CustomFirebaseAdapter&lt;User&gt;(this, User.class, R.layout.list_item, query) {
          @Override
          protected void populateView(View v, User model, int position) {
              //populate the ListView
  </code></pre>
  
  <p>and then I use getter methods on model.
  Now I'm concerned about the security of the code, I think each phone downloads all the data stored inside each user. Is there a way to retrive only the attributes that I need? </p>