Skip to content

Commit 14a71f0

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 14c265f commit 14a71f0

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
@@ -134,6 +134,7 @@ public Query skip(long skip) {
134134

135135
/**
136136
* Limit the number of returned documents to {@code limit}.
137+
* If limit chosen is 0 it returns all documents
137138
*
138139
* @param limit
139140
* @return this.

0 commit comments

Comments
 (0)