I wonder if there\'s any mechanism to use count in Spring Data MongoDB repository with @Query annotation? I would love to receive the number of doc
count
@Query
I had same problem recently and unfortunately did not find any solution at least not with current stable version. It seems that it is possible in Spring Data JPA 1.4M1 so maybe it will be also included in next version of Spring Data MongoDB.