Click or drag to resize

ChangeStreamFullDocumentBeforeChangeOption Enumeration

Change stream FullDocumentBeforeChange option.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax
public enum ChangeStreamFullDocumentBeforeChangeOption
Members
  Member nameValueDescription
Default0 Do not send this option to the server. Server's default is to not return the full document before change.
Off1 Do not return the full document before change.
WhenAvailable2 Returns the pre-image of the modified document for replace, update and delete change events if the pre-image for this event is available.
Required3 Same behavior as 'whenAvailable' except that an error is raised if the pre-image is not available.
See Also