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.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
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