pub async fn find(
        &self,
        filter: impl Into<Option<Document>>,
        options: impl Into<Option<FindOptions>>,
    ) -> Result<Cursor<T>> {
        let mut options = options.into();
        resolve_options!(self, options, [read_concern, selection_criteria]);

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

        client.execute_cursor_operation(find).await
    }
/// Finds the documents in the collection matching `filter`.
Finds the documents in the collection matching `filter`.
Finds the documents in the collection matching ` filter ` .
pub async fn find(
        &self,
        filter: impl Into<Option<Document>>,
        options: impl Into<Option<FindOptions>>,
    ) -> Result<Cursor<T>> {
        let mut options = options.into();
        resolve_options!(self, options, [read_concern, selection_criteria]);
        let find = Find::<T>::new(self.namespace(), filter.into(), options);
        let client = self.client();
        client.execute_cursor_operation(find).await
    }
pub async fn find ( & self , filter : impl Into < Option < Document > > , options : impl Into < Option < FindOptions > > , ) -> Result < Cursor < T > > { let mut options = options . into ( ) ; resolve_options ! ( self options [ read_concern selection_criteria ] ) ; let find = Find :: < T > :: new ( self . namespace ( ) , filter . into ( ) , options ) ; let client = self . client ( ) ; client . execute_cursor_operation ( find ) . await }
Finds the documents in the collection matching `filter`.
Finds the documents in the collection matching ` filter ` .
&self
filter
impl Into<Option<Document>>
options
impl Into<Option<FindOptions>>
&self
filter
impl Into<Option<Document>>
options
impl Into<Option<FindOptions>>