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.18.0+554c799eb1ec8dd732f16c739387f6664df1ba7a
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