Class CollectionFindOneAndUpdateOptions<T>
Options for finding and updating a single document in a collection.
public sealed class CollectionFindOneAndUpdateOptions<T> : CollectionUpdateOneOptions<T> where T : class
Type Parameters
T
- Inheritance
-
CollectionFindOneAndUpdateOptions<T>
- Inherited Members
Properties
Projection
Define the projection to apply on the returned document.
public IProjectionBuilder Projection { get; set; }
Property Value
ReturnDocument
Whether to return the document before or after the update.
public ReturnDocumentDirective? ReturnDocument { get; set; }