Skip to content

Commit 286ff1c

Browse files
raulmel1ochristophstrobl
authored andcommitted
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 5df195d commit 286ff1c

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)