2021-02-25

How to query multiple entries at once

I am using spring boot reactive and CouchDB

Flux<Item> findByLocation_LocationIdOrderByCreatedAtDesc(String locationId);

Just to point here I am accessing Location.locationId. Location object has locationId field in main document

Also below properties is not printing the generated couchdb query, if anyone can help with that too,

logging: level: org.springframework.data: DEBUG

The response is fine when database has only one entry, but when the db has more than one entry matching criteria it throws "Source emitted more than one item" .

My controller is returning

Flux<Item>


from Recent Questions - Stack Overflow https://ift.tt/3qUK7w1
https://ift.tt/eA8V8J

No comments:

Post a Comment