Team,
I am using spring-data-couchbase dependency and I have a requirement, which needs to delete documents based on list of document ids. This annotation : @Query(“#{#n1ql.delete} USE KEYS $1”) helps in deleting the documents but not seeing an option to know if the delete operation was successful.
This is not helping as it throws NullPointerExcpetion in JsonObject.getLong : @Query(“#{#n1ql.delete} USE KEYS $1 RETURNING META().id”)
Basically, I would want to know if the deletion was successful like returning the deleted documents ids or a boolean also will suffice. Please help with any options if it exists?