FullDocument

public struct FullDocument : RawRepresentable, Codable

Describes the modes for configuring the fullDocument field of a change stream document.

  • Specifies that the fullDocument field of an update event will contain a copy of the entire document that was changed from some time after the change occurred. If the document was deleted since the updated happened, it will be nil.

    Declaration

    Swift

    public static let updateLookup: FullDocument
  • For an unknown value. For forwards compatibility, no error will be thrown when an unknown value is provided.

    Declaration

    Swift

    public static func other(_ value: String) -> FullDocument
  • Declaration

    Swift

    public var rawValue: String
  • Creates a FullDocument. Never returns nil.

    Declaration

    Swift

    public init?(rawValue: String)