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 5df195db15
commit 286ff1c4a1

View File

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