I am evaluating spring-data / mongodb.
from what I can tell, the spring-data-commons does not yet support automatically generating count methods. e.g. "countByName".
also, there does not appear to be an operator in the mongo JSON syntax for counting. so I would be unable to use the @Query annotation.
am I right in assuming that my only option to do counting from my repository is to mixin a custom bean which uses MongoTemplate?
cheers

