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 75c76fb commit bfd6949Copy full SHA for bfd6949
src/coll/options.rs
@@ -712,7 +712,7 @@ impl From<FindOneOptions> for FindOptions {
712
limit: None,
713
max_await_time: None,
714
no_cursor_timeout: None,
715
- sort: None,
+ sort: options.sort,
716
}
717
718
@@ -805,6 +805,10 @@ pub struct FindOneOptions {
805
/// The number of documents to skip before counting.
806
#[builder(default)]
807
pub skip: Option<i64>,
808
+
809
+ /// The order of the documents for the purposes of the operation.
810
+ #[builder(default)]
811
+ pub sort: Option<Document>,
812
813
814
/// Specifies an index to create.
0 commit comments