File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -816,7 +816,13 @@ pub struct FindOptions {
816
816
/// Whether the server should close the cursor after a period of inactivity.
817
817
pub no_cursor_timeout : Option < bool > ,
818
818
819
- /// Limits the fields of the document being returned.
819
+ /// The [projection document](https://www.mongodb.com/docs/manual/reference/method/db.collection.find/#projection)
820
+ /// to determine which fields to include in the returned document.
821
+ ///
822
+ /// Specifying this option may cause deserialization errors if the returned fields do not fit
823
+ /// the schema of the collection's generic type. The
824
+ /// [`clone_with_type`](crate::Collection::clone_with_type) method can be used to retrieve a
825
+ /// handle to the collection with a different generic type configured.
820
826
pub projection : Option < Document > ,
821
827
822
828
/// The read concern to use for this find query.
You can’t perform that action at this time.
0 commit comments