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.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
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