fetchExists
is returning empty Mono
instead of Mono
containing false
#32
Labels
Milestone
fetchExists
is returning empty Mono
instead of Mono
containing false
#32
When a query yields records then
fetchExists
behaves as expected (returnsMono
containingtrue
).However, when there are no records
fetchExists
returns an emptyMono
instead ofMono
containingfalse
.In particular the code
return fetchOne(existsQuery).map(Objects::nonNull)
should be changed toreturn fetchOne(existsQuery).hasElement()
. AMono
's element is nevernull
so.map(Objects::nonNull)
either does nothing (for emptyMono
) or maps totrue
.The text was updated successfully, but these errors were encountered: