ChangeStreamType
public class ChangeStreamType<DocumentT> where DocumentT : Decodable, DocumentT : Encodable
A class representing the possible types of change streams.
-
A change stream that produces full change events. See ChangeEvent
Declaration
Swift
public static func fullDocument<FullDelegateT: ChangeStreamDelegate>( withDelegate delegate: FullDelegateT ) -> ChangeStreamType<FullDelegateT.DocumentT>
-
A change stream that produces smaller, more compact change events. See CompactChangeEvent
Declaration
Swift
public static func compactDocument<CompactDelegateT: CompactChangeStreamDelegate>( withDelegate delegate: CompactDelegateT ) -> ChangeStreamType<CompactDelegateT.DocumentT>