Update Query.limit javadoc.

This commit explains usage of Query.limit(int), which will be set to unlimited when set to zero or a negative value.

Closes: #3999
This commit is contained in:
Raul Mello Silva
2022-03-18 10:28:35 -03:00
committed by Christoph Strobl
parent 14c265f3a1
commit 14a71f0498

View File

@@ -134,6 +134,7 @@ public class Query {
/** /**
* Limit the number of returned documents to {@code limit}. * Limit the number of returned documents to {@code limit}.
* If limit chosen is 0 it returns all documents
* *
* @param limit * @param limit
* @return this. * @return this.