Issue with couchbaseTemplate.removeByQuery

Thank you very much guys!

I have updated the modified repository here . I have extended ListCrudRepository and fixed the CustomerRepositoryTest by using only the repository methods.

Unfortunately all repository methods seem to work except deleteById and deleteAll. The tests work fine but if I try the API with postman I have some problems.

If I try DELETE on http://localhost:8080/api/customers it gives me the same error as before:

Keyspace not found in CB datastore: default:customers - cause: No bucket named customers",“retry”:false

If I try DELETE on http://localhost:8080/api/customers/id_customer I get

Transaction has failed with cause 'java.lang.IllegalArgumentException: cas must be supplied for tx remove

I haven’t figured out how to pass the cas in this case…