We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3c0b62 commit 50a0eedCopy full SHA for 50a0eed
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Query.java
@@ -312,7 +312,7 @@ public Query with(OffsetScrollPosition position) {
312
313
Assert.notNull(position, "ScrollPosition must not be null");
314
315
- this.skip = position.getOffset();
+ this.skip = position.isInitial() ? 0 : position.getOffset() + 1;
316
this.keysetScrollPosition = null;
317
return this;
318
}
0 commit comments