Instance Subscriptswift-mongodb 0.27.0MongoBuiltins->Mongo
subscript(_:_:)
Mongo.UpdateEncoder.swift:166subscript(key: Reduction, yield: (inout Mongo.UpdateFieldsEncoder<Reduction>) -> ()) -> Void { mutating get }
Other members in extension
Types
enum Arithmetic
enum ArrayUnion
enum Assignment
enum Bit
enum CurrentDate
enum Pop
enum Pull
enum Reduction
enum Rename
enum Unset
Takes a document and removes the specified fields. Not to be confused with the
unset
aggregation pipeline stage, which can take a field path directly.
Type members
Instance members
subscript<Replacement>(Assignment
) -> Replacement? We generally do not use
BSONDocumentEncodable
to type documents, because there are many document-typed things that do not declare a coding key type. However, in this case, we useBSONDocumentEncodable
and not justBSONEncodable
because you should only ever be using this with something that has aCodingKey
.subscript(Arithmetic, (inout Mongo.UpdateFieldsEncoder<Arithmetic>) -> ()
) -> Void subscript(ArrayUnion, (inout Mongo.UpdateFieldsEncoder<ArrayUnion>) -> ()
) -> Void subscript(Assignment, (inout Mongo.UpdateFieldsEncoder<Assignment>) -> ()
) -> Void subscript(CurrentDate, (inout Mongo.UpdateFieldsEncoder<CurrentDate>) -> ()
) -> Void subscript(Bit, (inout Mongo.UpdateFieldsEncoder<Bit>) -> ()
) -> Void subscript(Pop, (inout Mongo.UpdateFieldsEncoder<Pop>) -> ()
) -> Void subscript(Pull, (inout Mongo.UpdateFieldsEncoder<Pull>) -> ()
) -> Void subscript(Unset, (inout Mongo.UpdateFieldsEncoder<Unset>) -> ()
) -> Void subscript(Rename, (inout Mongo.UpdateFieldsEncoder<Rename>) -> ()
) -> Void func move(
) -> BSON.Output