Skip to content

Commit

Permalink
Update Query.limit javadoc.
Browse files Browse the repository at this point in the history
This commit explains usage of Query.limit(int), which will be set to unlimited when set to zero or a negative value.

Closes: #3999
  • Loading branch information
raulmel1o authored and christophstrobl committed May 10, 2022
1 parent 5df195d commit 286ff1c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ public Query skip(long skip) {

/**
* Limit the number of returned documents to {@code limit}.
* If limit chosen is 0 it returns all documents
*
* @param limit
* @return this.
Expand Down

0 comments on commit 286ff1c

Please sign in to comment.