title: How to frame a query using @Query annotation?
body: <p>Is there any way to represent below query using spring-data mongo @Query annotation. </p>
  
  <pre><code>db.users.find({userName: "titogeo"}, {requests: 1, _id:0})
  </code></pre>
  
  <p>The above query output in console is</p>
  
  <blockquote>
    <p>requests" : [{"who" : "blahblahblah1",<br>
                  "whom" : "blahblahblah2",<br>
                  "what" : "REQUEST",<br>
                  "when" : ISODate("2012-09-05T17:52:14.339Z") } ] }</p>
  </blockquote>
  
  <p>I tried the following but did not work. </p>
  
  <pre><code>@Query("{userName: ?0}, {requests:1, _id:0}")
  public Page&lt;AddRequest&gt; getAllFriendRequests(String userName, Pageable pageable);
  </code></pre>
  
  <p>Collection users has User objects and requests is a list in it contains AddRequest objects. </p>
  
  <p>When I execute the above method, i am getting a blank list. Any help is appreciated. </p>
  
  <p>Also is there any good reference sites or books for spring-data-mongo apis? </p>