From 5ade62808a4e14c8a4c3831473732e25de7f5158 Mon Sep 17 00:00:00 2001 From: robeatoz <32271374+robeatoz@users.noreply.github.com> Date: Sat, 3 Dec 2022 14:53:32 +0100 Subject: [PATCH] Fix parameter and method name "batchSize" -> "cursorBatchSize" --- src/main/asciidoc/reference/mongodb.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/asciidoc/reference/mongodb.adoc b/src/main/asciidoc/reference/mongodb.adoc index ebe7f0aefc..b6a28414b6 100644 --- a/src/main/asciidoc/reference/mongodb.adoc +++ b/src/main/asciidoc/reference/mongodb.adoc @@ -2198,7 +2198,7 @@ directly there are several methods for those options. ---- Query query = query(where("firstname").is("luke")) .comment("find luke") <1> - .batchSize(100) <2> + .cursorBatchSize(100) <2> ---- <1> The comment propagated to the MongoDB profile log. <2> The number of documents to return in each response batch. @@ -2209,7 +2209,7 @@ On the repository level the `@Meta` annotation provides means to add query optio ==== [source,java] ---- -@Meta(comment = "find luke", batchSize = 100, flags = { SLAVE_OK }) +@Meta(comment = "find luke", cursorBatchSize = 100, flags = { SLAVE_OK }) List findByFirstname(String firstname); ---- ====