From 91c518c65c3588844f361346f403762716f81a3a Mon Sep 17 00:00:00 2001 From: cloudant-sdks-automation <71659186+cloudant-sdks-automation@users.noreply.github.com> Date: Tue, 28 Oct 2025 16:24:54 +0000 Subject: [PATCH] docs(generated): improve snippet examples Generated SDK source code using: - Generator version 3.107.1 - Specification version 1.0.0-dev0.1.29 - Automation (cloudant-sdks) version 0a2725e --- examples/README.md | 8 +++----- examples/snippets/getDbUpdates/example_request.java | 1 - examples/snippets/getDesignDocument/example_request.java | 1 - examples/snippets/postDesignDocs/example_request.java | 2 +- .../snippets/postDesignDocsQueries/example_request.java | 2 +- .../postFind/example_request_for_text_index_type.java | 2 +- 6 files changed, 6 insertions(+), 10 deletions(-) diff --git a/examples/README.md b/examples/README.md index 02107f5be..305e8a78c 100644 --- a/examples/README.md +++ b/examples/README.md @@ -301,7 +301,6 @@ Cloudant service = Cloudant.newInstance(); GetDbUpdatesOptions dbUpdatesOptions = new GetDbUpdatesOptions.Builder() .feed("normal") - .heartbeat(10000) .since("now") .build(); @@ -1347,7 +1346,6 @@ Cloudant service = Cloudant.newInstance(); GetDesignDocumentOptions designDocumentOptions = new GetDesignDocumentOptions.Builder() .db("products") .ddoc("appliances") - .latest(true) .build(); DesignDocument response = @@ -1656,7 +1654,7 @@ Cloudant service = Cloudant.newInstance(); PostDesignDocsOptions docsOptions = new PostDesignDocsOptions.Builder() - .attachments(true) + .descending(true) .db("users") .build(); @@ -1692,7 +1690,7 @@ AllDocsQuery query1 = new AllDocsQuery.Builder() .build(); AllDocsQuery query2 = new AllDocsQuery.Builder() .inclusiveEnd(true) - .key("_design/allusers") + .startKey("_design/allusers") .skip(1) .build(); @@ -1805,7 +1803,7 @@ Cloudant service = Cloudant.newInstance(); Map selector = Collections.singletonMap( "address", - Collections.singletonMap("$regex", "Street")); + Collections.singletonMap("$exists", true)); PostFindOptions findOptions = new PostFindOptions.Builder() .db("users") diff --git a/examples/snippets/getDbUpdates/example_request.java b/examples/snippets/getDbUpdates/example_request.java index b24ef7027..a041789b9 100644 --- a/examples/snippets/getDbUpdates/example_request.java +++ b/examples/snippets/getDbUpdates/example_request.java @@ -7,7 +7,6 @@ GetDbUpdatesOptions dbUpdatesOptions = new GetDbUpdatesOptions.Builder() .feed("normal") - .heartbeat(10000) .since("now") .build(); diff --git a/examples/snippets/getDesignDocument/example_request.java b/examples/snippets/getDesignDocument/example_request.java index f9e3463a8..497f048c7 100644 --- a/examples/snippets/getDesignDocument/example_request.java +++ b/examples/snippets/getDesignDocument/example_request.java @@ -8,7 +8,6 @@ GetDesignDocumentOptions designDocumentOptions = new GetDesignDocumentOptions.Builder() .db("products") .ddoc("appliances") - .latest(true) .build(); DesignDocument response = diff --git a/examples/snippets/postDesignDocs/example_request.java b/examples/snippets/postDesignDocs/example_request.java index 9d2974e38..3849425f0 100644 --- a/examples/snippets/postDesignDocs/example_request.java +++ b/examples/snippets/postDesignDocs/example_request.java @@ -7,7 +7,7 @@ PostDesignDocsOptions docsOptions = new PostDesignDocsOptions.Builder() - .attachments(true) + .descending(true) .db("users") .build(); diff --git a/examples/snippets/postDesignDocsQueries/example_request.java b/examples/snippets/postDesignDocsQueries/example_request.java index 4bbf7af33..bd000c05d 100644 --- a/examples/snippets/postDesignDocsQueries/example_request.java +++ b/examples/snippets/postDesignDocsQueries/example_request.java @@ -15,7 +15,7 @@ .build(); AllDocsQuery query2 = new AllDocsQuery.Builder() .inclusiveEnd(true) - .key("_design/allusers") + .startKey("_design/allusers") .skip(1) .build(); diff --git a/examples/snippets/postFind/example_request_for_text_index_type.java b/examples/snippets/postFind/example_request_for_text_index_type.java index 31bae506e..634943fcb 100644 --- a/examples/snippets/postFind/example_request_for_text_index_type.java +++ b/examples/snippets/postFind/example_request_for_text_index_type.java @@ -11,7 +11,7 @@ Map selector = Collections.singletonMap( "address", - Collections.singletonMap("$regex", "Street")); + Collections.singletonMap("$exists", true)); PostFindOptions findOptions = new PostFindOptions.Builder() .db("users")