We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de74b72 commit 7c0507fCopy full SHA for 7c0507f
src/main/java/org/springframework/data/couchbase/core/ReactiveFindByQueryOperationSupport.java
@@ -176,7 +176,7 @@ public Flux<T> all() {
176
}).flatMapMany(ReactiveQueryResult::rowsAsObject).flatMap(row -> {
177
String id = "";
178
long cas = 0;
179
- if (!query.isDistinct() && distinctFields != null) {
+ if (!query.isDistinct() && distinctFields == null) {
180
if (row.getString(TemplateUtils.SELECT_ID) == null) {
181
return Flux.error(new CouchbaseException(
182
"query did not project " + TemplateUtils.SELECT_ID + ". Either use #{#n1ql.selectEntity} or project "
0 commit comments