title: Exclude some fields form MongoOperations result
body: <p>My User POJO looks like the following:</p>
  
  <pre><code>import org.springframework.data.annotation.Id;
  import org.springframework.data.mongodb.core.mapping.Document;
  
  @Document(collection = "User")
  public class User {
      @Id
      private String id;
      private String username;
      private String password;
      public String getId() {
          return id;
      }
      public void setId(String id) {
          this.id = id;
      }
      public String getUsername() {
          return username;
      }
      public void setUsername(String username) {
          this.username = username;
      }
      public String getPassword() {
          return password;
      }
      public void setPassword(String password) {
          this.password = password;
      }
  }
  </code></pre>
  
  <p>I am able to get all document based on the query:</p>
  
  <pre><code>List&lt;User&gt; testBedsFromDB = mongoOperations.findAll(User.class);
  </code></pre>
  
  <p>I want to skip some of the fields like <code>password</code>. I want to get all the document with <code>values only in id and username</code>, <code>password may be null or empty</code>. How I can achieve this?</p>