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 0d4b5de2a5
commit ed83c7625e

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.