I am using spring data couchbase and I want to write a custom query for deleting all the docs based on some condition I have below query written down:
@Query("#{#n1ql.delete} WHERE #{#n1ql.filter} AND " +
"accountId = $1 #{#n1ql.returning}")
Mono<Void> delete(String accountId);
But this does not seem to be working. Please help me to fix this issue.