(
filter: Filter<TSchema>,
options?: FindOneAndDeleteOptions
)
| 944 | ): Promise<WithId<TSchema> | null>; |
| 945 | async findOneAndDelete(filter: Filter<TSchema>): Promise<WithId<TSchema> | null>; |
| 946 | async findOneAndDelete( |
| 947 | filter: Filter<TSchema>, |
| 948 | options?: FindOneAndDeleteOptions |
| 949 | ): Promise<WithId<TSchema> | ModifyResult<TSchema> | null> { |
| 950 | return await executeOperation( |
| 951 | this.client, |
| 952 | new FindOneAndDeleteOperation( |
| 953 | this as TODO_NODE_3286, |
| 954 | filter, |
| 955 | resolveOptions(this, options) |
| 956 | ) as TODO_NODE_3286 |
| 957 | ); |
| 958 | } |
| 959 | |
| 960 | /** |
| 961 | * Find a document and replace it in one atomic operation. Requires a write lock for the duration of the operation. |
no test coverage detected