I need a custom query (due to entity subclassing) for my deleteAll repository method such as (Kotlin code):
@Query("#{#n1ql.delete} WHERE (_class='a.b.C' OR _class='d.e.F')")
override fun deleteAll()
However, when running this I get:
org.springframework.data.couchbase.core.CouchbaseQueryExecutionException: Query returning a primitive type are expected to return exactly 1 result, got 0
I cannot find an example how to provide a custom query for a deleteAll method, which (by interface signature) cannot return anything.