pub async fn find_with_session(
        &self,
        filter: impl Into<Option<Document>>,
        options: impl Into<Option<FindOptions>>,
        session: &mut ClientSession,
    ) -> Result<SessionCursor<T>> {
        let mut options = options.into();
        resolve_read_concern_with_session!(self, options, Some(&mut *session))?;
        resolve_selection_criteria_with_session!(self, options, Some(&mut *session))?;

        let find = Find::<T>::new(self.namespace(), filter.into(), options);
        let client = self.client();

        client.execute_session_cursor_operation(find, session).await
    }
/// Finds the documents in the collection matching `filter` using the provided `ClientSession`.
Finds the documents in the collection matching `filter` using the provided `ClientSession`.
Finds the documents in the collection matching ` filter ` using the provided ` ClientSession ` .
pub async fn find_with_session(
        &self,
        filter: impl Into<Option<Document>>,
        options: impl Into<Option<FindOptions>>,
        session: &mut ClientSession,
    ) -> Result<SessionCursor<T>> {
        let mut options = options.into();
        resolve_read_concern_with_session!(self, options, Some(&mut *session))?;
        resolve_selection_criteria_with_session!(self, options, Some(&mut *session))?;
        let find = Find::<T>::new(self.namespace(), filter.into(), options);
        let client = self.client();
        client.execute_session_cursor_operation(find, session).await
    }
pub async fn find_with_session ( & self , filter : impl Into < Option < Document > > , options : impl Into < Option < FindOptions > > , session : & mut ClientSession , ) -> Result < SessionCursor < T > > { let mut options = options . into ( ) ; resolve_read_concern_with_session ! ( self options Some ( mut session ) ) ? ; resolve_selection_criteria_with_session ! ( self options Some ( mut session ) ) ? ; let find = Find :: < T > :: new ( self . namespace ( ) , filter . into ( ) , options ) ; let client = self . client ( ) ; client . execute_session_cursor_operation ( find , session ) . await }
Finds the documents in the collection matching `filter` using the provided `ClientSession`.
Finds the documents in the collection matching ` filter ` using the provided ` ClientSession ` .
&self
filter
impl Into<Option<Document>>
options
impl Into<Option<FindOptions>>
session
&mut ClientSession
&self
filter
impl Into<Option<Document>>
options
impl Into<Option<FindOptions>>
session
&mut ClientSession