FindOneAndDeleteOptions (driver-core 5.5.0 API) (original) (raw)


public class FindOneAndDeleteOptions extends Object

The options to apply to an operation that atomically finds a document and deletes it.

Since:

3.0

MongoDB documentation

reference/command/findAndModify/

Constructors

Sets the collation options
Sets the comment for this operation.
Sets the comment for this operation.
Returns the collation options
[getHint](#getHint%28%29)()
Gets the hint string to apply.
[getLet](#getLet%28%29)()
Add top-level variables to the operation
long
Gets the maximum execution time for the find one and delete operation.
Gets a document describing the fields to return for all matching documents.
[getSort](#getSort%28%29)()
Gets the sort criteria to apply to the query.
Add top-level variables for the operation
Sets the maximum execution time on the server for this operation.
Sets a document describing the fields to return for all matching documents.
Sets the sort criteria to apply to the query.
[toString](#toString%28%29)()