UpdateFieldsEncoder
Mongo.UpdateFieldsEncoder.swift:8@frozen struct UpdateFieldsEncoder<Operator>@frozen struct UpdateFieldsEncoder<Operator>import MongoA single-type module that declares the Mongo namespace.
import MongoBuiltinsenum Mongoprotocol EncodableDocument : BSONRepresentable, BSONDecodable, BSONEncodable where Self.BSONRepresentation == BSON.DocumentAn EncodableDocument is nothing more than a type that supports an init(with:) builder API.
protocol EncodableList : BSONRepresentable, BSONDecodable, BSONEncodable where Self.BSONRepresentation == BSON.ListAn EncodableList is nothing more than a type that supports an init(with:) builder API.
protocol PipelineEncodable : Mongo.PipelineStreamableprotocol PipelineStreamableprotocol PredicateConfigurable<PredicateArgument>protocol PredicateEncodableprotocol ProjectionEncodable<CodingKey>protocol ProjectionOperatorEncodableprotocol SortDirectionprotocol UpdateValueOperatorA value operator is an update operator that encodes a document that can contain fields of arbitrary BSONEncodable types. It has no requirements, as it only exists to gate the subscripts of UpdateFieldsEncoder.
@frozen struct Accumulator@frozen struct BucketAutoDocument@frozen struct BucketAutoEncoder@frozen struct BucketDocument@frozen struct BucketEncoder@frozen struct BucketOutputDocument@frozen struct BucketOutputEncoder@frozen enum Change<Delta> where Delta : Mongo.MasterCodingDelta, Delta.Model : Identifiable@frozen struct ChangeEvent<Delta> where Delta : Mongo.MasterCodingDelta, Delta.Model : Identifiable@frozen struct ChangeEventIdentifier@frozen struct ChangeStreamEncoder@frozen struct ChangeTruncatedArray<Field>@frozen struct CollectionStatsDocument@frozen struct CurrentOperationDocument@frozen struct EmptyDocumentA type that can be used to expect an empty document. Decoding from a non-empty document (or a value that is not a document at all) will throw an error.
@frozen struct Expression@frozen struct ExpressionEncoder@frozen struct FacetDocument<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String@frozen struct FacetEncoder<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String@frozen struct FilterDocumentNot to be confused with PredicateDocument.
@frozen enum GroupBy@frozen struct GroupDocument@frozen struct IdentityDocument<ID>An generic document model that can be used to extract the _id field of a document. This type is suitable for unsharded collections only.
@frozen struct LatencyStatsDocument@frozen struct LetDocument@frozen struct LetEncoder@frozen struct List<Element, Encodable> where Encodable : BSONEncodable@frozen struct LookupDocument@frozen struct LookupEncoder@frozen struct MapDocument@frozen struct MergeDocument@frozen enum MergeInsertMode@frozen enum MergeUpdateMode@frozen struct Pipeline@frozen struct PipelineEncoder@frozen struct PredicateDocumentNot to be confused with FilterDocument.
@frozen struct PredicateEncoder@frozen struct PredicateList@frozen struct PredicateListEncoder@frozen struct PredicateOperator@frozen struct PredicateOperatorEncoder@frozen enum PreferredNumbers@frozen struct ProjectionDocument<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String@frozen struct ProjectionEncoder<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String@frozen enum ProjectionMetadata@frozen struct ProjectionOperator@frozen struct ProjectionOperatorEncoder@frozen struct ReduceDocument@frozen struct SampleDocument@frozen struct SetDocument<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String@frozen struct SetEncoder<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String@frozen struct SetListEncoder@frozen struct SortArrayDocument@frozen enum SortAscending@frozen enum SortBy@frozen enum SortDescending@frozen struct SortDocument<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String@frozen struct SortEncoder<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String@frozen enum SortMetadata@frozen struct SortOperator@frozen struct SortOperatorEncoder@frozen struct StorageStatsDocument@frozen struct SwitchBranch@frozen struct SwitchBranches@frozen struct SwitchDocument@frozen struct UnionWithDocument@frozen struct UnwindDocument@frozen struct UpdateArray@frozen struct UpdateArrayEncoder@frozen enum UpdateBitwiseOperator@frozen struct UpdateDocument@frozen struct UpdateEncoder@frozen struct UpdateFields<Operator>@frozen enum UpdatePosition@frozen struct ZipDocumentprotocol Sendableinit(_ output: consuming BSON.Output) static var frame: BSON.DocumentFrame { get }consuming func move() -> BSON.Output subscript<Encodable>(path: Mongo.AnyKeyPath) -> Encodable? where Encodable : BSONEncodable { get set } protocol CopyableA type whose values can be implicitly or explicitly copied.
protocol Escapableprotocol Encoder<Frame>@frozen enum Arithmeticsubscript(path: Mongo.AnyKeyPath) -> Double? { get set } subscript(path: Mongo.AnyKeyPath) -> Int? { get set } @frozen enum ArrayUnionsubscript(path: Mongo.AnyKeyPath, yield: (inout Mongo.UpdateArrayEncoder) -> ()) -> Void { mutating get } @frozen enum Assignmentsubscript(path: Mongo.AnyKeyPath, yield: (inout Mongo.ExpressionEncoder) -> ()) -> Void { mutating get } @frozen enum CurrentDatesubscript(path: Mongo.AnyKeyPath) -> UnixMillisecond.Type? { get set } @frozen enum Bitsubscript(path: Mongo.AnyKeyPath) -> (operator: Mongo.UpdateBitwiseOperator, int32: Int32)? { get set } subscript(path: Mongo.AnyKeyPath) -> (operator: Mongo.UpdateBitwiseOperator, int64: Int64)? { get set } @frozen enum Popsubscript(path: Mongo.AnyKeyPath) -> Mongo.UpdatePosition? { get set } @frozen enum Pullsubscript(path: Mongo.AnyKeyPath, yield: (inout Mongo.PredicateOperatorEncoder) -> ()) -> Void { mutating get } @frozen enum UnsetTakes a document and removes the specified fields. Not to be confused with the unset aggregation pipeline stage, which can take a field path directly.
subscript(path: Mongo.AnyKeyPath) -> Bool { get set } Unsets the field at the given path, if true. The getter always returns false.
subscript(path: Mongo.AnyKeyPath) -> Void? { get set } @frozen enum Renamesubscript(path: Mongo.AnyKeyPath) -> Mongo.AnyKeyPath? { get set }