Is there any way to get all documents from a db rather than specifying an id and retrieving a single document using lightcouch api in Java.Presently i am using the method
JsonObject json = dbClient.find(JsonObject.class, "some-id") to retrieve a single document.
Thanks in advance.
How about the _all_docs
view? That will return a list of all the docs in the database. Or if you include include_docs=true
to the request, you will also get the contents of the documents.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With