Change Streams
-
Declaration
Swift
public class ChangeStream<T> : CursorProtocol where T : Decodable, T : Encodable
extension ChangeStream: AsyncSequence, AsyncIteratorProtocol
-
The response document type from a
See moreChangeStream
.Declaration
Swift
public struct ChangeStreamEvent<T> : Codable where T : Decodable, T : Encodable
-
Options to use when creating a
See moreChangeStream
.Declaration
Swift
public struct ChangeStreamOptions : Codable
-
An enum representing the type of operation for this change event.
See moreDeclaration
Swift
public enum OperationType : String, Codable
-
A token used for manually resuming a change stream. Pass this to the
See moreresumeAfter
field ofChangeStreamOptions
to resume or start a change stream where a previous one left off.Declaration
Swift
public struct ResumeToken : Codable, Equatable
-
Describes the modes for configuring the fullDocument field of a change stream document.
See moreDeclaration
Swift
public struct FullDocument : RawRepresentable, Codable
-
An
See moreUpdateDescription
containing fields that will be present in the change stream document for operations of typeupdate
.Declaration
Swift
public struct UpdateDescription : Codable