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)
This commit is contained in:
committed by
Mark Paluch
parent
b08990ccd0
commit
05ca193331
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user