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.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
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