title: How to exclude an element from a Firestore query?
body: <p>I have a collection of users and I want to query all users from the database and display them in a <code>RecyclerView</code> except one, <strong>mine</strong>. This is my db schema:</p>
  
  <pre><code>users [collection]
    - uid [document]
       - uid: "fR5bih7SysccRu2Gu9990TeSSyg2"
       - username: "John"
       - age: 22
    - //other users
  </code></pre>
  
  <p>How to query the database like so:</p>
  
  <pre><code>String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();
  Query q = db.collection("users").whereNotEqualTo("uid", uid);
  </code></pre>
  
  <p>So I need this query object to be passed to a <code>FirestoreRecyclerOptions</code> object in order to display all the other users in <code>RecyclerView</code>.</p>
  
  <p>Is this even possible? If not, how can I solve this? Thanks!</p>
  
  <p><strong>Edit:</strong></p>
  
  <pre><code>options = new FirestoreRecyclerOptions.Builder&lt;UserModel&gt;()
          .setQuery(query, new SnapshotParser&lt;UserModel&gt;() {
              @NonNull
              @Override
              public UserModel parseSnapshot(@NonNull DocumentSnapshot snapshot) {
                  UserModel userModel = documentSnapshot.toObject(UserModel.class);
                  if (!userModel.getUid().equals(uid)) {
                      return userModel;
                  } else {
                      return new UserModel();
                  }
              }
          }).build();
  </code></pre>