Skip to content
Browse files

added findAny() to user guide

  • Loading branch information...
1 parent 4bde7fa commit 7b9f4aaf95d30eb03964be582538eefc75c6b8c0 @ahmedyha ahmedyha committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 guide/src/docbkx/lightcouch-guide.xml
7 guide/src/docbkx/lightcouch-guide.xml
@@ -342,6 +342,11 @@;
A <literal>java.util.Map</literal> however does not qualify for a return type.
+ An additional finder method <literal>findAny()</literal> is provided as to give more control over the query,
+ typically use it to retrieve any kind of document when there is no equivalent API already supported by the client.
+ Unlike other finder methods, this method expects a fully formated and encoded URI to be supplied.
+ </para>
+ <para>
When working with streams, it is important to close it after usage to release the connection.
<para>Usage Example:</para>
@@ -356,6 +361,8 @@ InputStream in = dbClient.find("some-id"); // find as stream
JsonObject json = dbClient.find(JsonObject.class, "some-id");
+json = dbClient.findAny(JsonObject.class, dbClient.getDBUri().toString() + "any-uri");
</section><!-- end find documents -->

0 comments on commit 7b9f4aa

Please sign in to comment.
Something went wrong with that request. Please try again.