Browse Source

DATAMONGO-1378 - Update reference documentation: Change Query.sort() to Query.with(Sort sort).

sort() is not a method of Query, to sort a query you have to use with().

Original pull request: #320.
CLA: 162620160211060822 (Uxío Fuentefría)
1.7.x
Uxío Fuentefría 10 years ago committed by Mark Paluch
parent
commit
05ca193331
  1. 2
      src/main/asciidoc/reference/mongodb.adoc

2
src/main/asciidoc/reference/mongodb.adoc

@ -1059,7 +1059,7 @@ The `Query` class has some additional methods used to provide options for the qu @@ -1059,7 +1059,7 @@ The `Query` class has some additional methods used to provide options for the qu
* `Field` *fields* `()` used to define fields to be included in the query results
* `Query` *limit* `(int limit)` used to limit the size of the returned results to the provided limit (used for paging)
* `Query` *skip* `(int skip)` used to skip the provided number of documents in the results (used for paging)
* `Sort` *sort* `()` used to provide sort definition for the results
* `Query` *with* `(Sort sort)` used to provide sort definition for the results
[[mongo-template.querying]]
=== Methods for querying for documents

Loading…
Cancel
Save