title: spring data mongodb maximum likes
body: <p>I am using mongodb having a collection,in which i am storing status of a item for a different users,it is like <code>"userItemstatus" = 1 or 2</code>.which means 1 for liking the item and 2 for disliking the item.</p>
  
  <pre><code>"_id" : NumberLong(104009),
      "_class" : "com.samepinch.domain.registration.UserItemHistory",
      "user_id" : NumberLong(85861),
      "item_id" : NumberLong(103468),
      "catagory" : "MISCELLANEOUS",
      "userItemStatus" : 1,
      "createdDate" : ISODate("2016-02-08T11:43:40.351Z"),
      "updatedDate" : ISODate("2016-02-08T11:43:43.780Z")
  }
  {
      "_id" : NumberLong(104018),
      "_class" : "com.samepinch.domain.registration.UserItemHistory",
      "user_id" : NumberLong(85861),
      "item_id" : NumberLong(103352),
      "catagory" : "MISCELLANEOUS",
      "userItemStatus" : 2,
      "createdDate" : ISODate("2016-02-08T11:44:26.803Z"),
      "updatedDate" : ISODate("2016-03-17T19:34:07Z")
  }
  </code></pre>
  
  <p>Now i want get the item which got most liked. i,e item which have  most number of <code>"userItemStatus"= 1</code>. I have read about aggregation but i am having problem of using it with spring data mongodb. I am new in using spring data mongodb. Please help.</p>