We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fffb46f commit 4e4417aCopy full SHA for 4e4417a
mongodb-driver/src/main/java/org/jnosql/diana/mongodb/document/MongoDBDocumentCollectionManager.java
@@ -115,12 +115,12 @@ public List<DocumentEntity> select(DocumentQuery query) {
115
116
FindIterable<Document> documents = collection.find(mongoDBQuery);
117
118
- if (query.getFirstResult() > 0) {
119
- documents.skip((int) query.getFirstResult());
+ if (query.getStart() > 0) {
+ documents.skip((int) query.getStart());
120
}
121
122
- if (query.getMaxResults() > 0) {
123
- documents.limit((int) query.getMaxResults());
+ if (query.getLimit() > 0) {
+ documents.limit((int) query.getLimit());
124
125
126
query.getSorts().stream().map(this::getSort).forEach(documents::sort);
0 commit comments