Skip to content

Commit ed83c76

Browse files
raulmel1ochristophstrobl
authored andcommittedMay 10, 2022
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
1 parent 0d4b5de commit ed83c76

File tree

1 file changed

+1
-0
lines changed
  • spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query

1 file changed

+1
-0
lines changed
 

‎spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Query.java

+1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ public Query skip(long skip) {
136136

137137
/**
138138
* Limit the number of returned documents to {@code limit}.
139+
* If limit chosen is 0 it returns all documents
139140
*
140141
* @param limit
141142
* @return this.

0 commit comments

Comments
 (0)
Please sign in to comment.