/// Atomically finds up to one document in the collection matching `filter` and deletes it.
///
/// This operation will retry once upon failure if the connection and encountered error support
/// retryability. See the documentation
/// [here](https://docs.mongodb.com/manual/core/retryable-writes/) for more information on
/// retryable writes.
Atomically finds up to one document in the collection matching `filter` and deletes it.
This operation will retry once upon failure if the connection and encountered error support
retryability. See the documentation
[here] for more information on
retryable writes.
Atomically finds up to one document in the collection matching ` filter ` and deletes it . This operation will retry once upon failure if the connection and encountered error support retryability . See the documentation [ here ] for more information on retryable writes .
pub fn find_one_and_delete(
        &self,
        filter: Document,
        options: impl Into<Option<FindOneAndDeleteOptions>>,
    ) -> Result<Option<T>> {
        RUNTIME.block_on(
            self.async_collection
                .find_one_and_delete(filter, options.into()),
        )
    }
pub fn find_one_and_delete ( & self , filter : Document , options : impl Into < Option < FindOneAndDeleteOptions > > , ) -> Result < Option < T > > { RUNTIME . block_on ( self . async_collection . find_one_and_delete ( filter , options . into ( ) ) , ) }
Atomically finds up to one document in the collection matching `filter` and deletes it.
Atomically finds up to one document in the collection matching ` filter ` and deletes it .
&self
filter
Document
options
impl Into<Option<FindOneAndDeleteOptions>>