public class FindOneAndDeleteOptions extends Object
| Constructor and Description |
|---|
FindOneAndDeleteOptions() |
| Modifier and Type | Method and Description |
|---|---|
Bson |
getProjection()
Gets a document describing the fields to return for all matching documents.
|
Bson |
getSort()
Gets the sort criteria to apply to the query.
|
FindOneAndDeleteOptions |
projection(Bson projection)
Sets a document describing the fields to return for all matching documents.
|
FindOneAndDeleteOptions |
sort(Bson sort)
Sets the sort criteria to apply to the query.
|
public Bson getProjection()
public FindOneAndDeleteOptions projection(Bson projection)
projection - the project document, which may be null.public Bson getSort()
public FindOneAndDeleteOptions sort(Bson sort)
sort - the sort criteria, which may be null.