https://forums.couchbase.com/t/unable-to-use-n1ql-query-in-query-annotation-with-max-function-in-spring-data-couchbase-4-1-5/29776 Maybe even allow it. See could for ReactiveFindByQueryCount.all() - handling when there are distinctFields.