Delete
Mongo.Delete.swift:6struct Delete<Effect> where Effect : Mongo.WriteEffectstruct Delete<Effect> where Effect : Mongo.WriteEffectimport MongoA single-type module that declares the Mongo namespace.
import MongoQLenum Mongoprotocol WriteEffectprotocol HintableEncoder<Hint>protocol ModificationEffectprotocol ModificationPhase : BSONEncodableprotocol ReadEffectprotocol SortableEncoder<Sort>@frozen struct Aggregate<Effect> where Effect : Mongo.ReadEffect@frozen struct Collation@frozen struct CollectionBinding@frozen struct CollectionMetadata@frozen struct CollectionOptionsCollection options.
@frozen struct CollectionStats@frozen enum CollectionType@frozen struct CollectionViewstruct Create<Mode>Explicitly creates a collection or view.
@frozen struct CreateIndexStatement@frozen struct CreateIndexStatementEncoderstruct CreateIndexesstruct CreateIndexesResponse@frozen struct DatabaseMetadataInformation about a MongoDB database.
@frozen enum DeleteLimit@frozen struct DeleteListEncoder<Effect> where Effect : Mongo.WriteEffect@frozen enum DeleteOnestruct DeleteResponse@frozen struct DeleteStatementEncoder<Effect> where Effect : Mongo.WriteEffect@frozen struct DeletionsStores information about a delete operation.
struct Dropstruct DropDatabaseDrops the current database, deleting its contents.
struct DropIndexes@frozen enum Existing<Document> where Document : BSONDecodable, Document : Sendable@frozen struct Explain<Command> where Command : Mongo.Command@frozen enum ExplainMode@frozen enum ExplainOnly@frozen struct Find<Effect> where Effect : Mongo.ReadEffectstruct FindAndModify<Effect> where Effect : Mongo.ModificationEffectstruct Fsync@frozen struct FsyncLockInformation about a MongoDB Fsync lock.
struct FsyncUnlock@frozen struct IndexBindingstruct InsertInserts one or more documents and returns a document containing the status of all inserts.
@frozen struct InsertListEncoderstruct InsertResponse@frozen struct InsertionsStores information about an insert operation.
struct ListCollections<Element> where Element : BSONDecodable, Element : SendableRetrieves information about collections (including collection-views) in a database.
struct ListDatabasesLists all existing databases along with basic statistics about them. This command must run against the admin database.
@frozen struct ListIndexes<Element> where Element : BSONDecodable, Element : SendableThe listIndexes command.
@frozen enum Manystruct Modify<Mode>Modifies collection settings.
@frozen enum One@frozen enum RemovePhase@frozen enum Removing<Document> where Document : BSONDecodable, Document : Sendablestruct RenameCollection@frozen enum Single<Element> where Element : BSONDecodable, Element : Sendable@frozen enum SingleBatch<Element> where Element : BSONDecodable, Element : Sendable@frozen enum SingleOutputError@frozen struct Timeseriesstruct Update<Effect, ID> where Effect : Mongo.WriteEffect, ID : BSONDecodable, ID : Sendable@frozen struct UpdateListEncoder<Effect> where Effect : Mongo.WriteEffect@frozen enum UpdatePhasestruct UpdateResponse<ID> where ID : BSONDecodable, ID : Sendable@frozen struct UpdateStatementEncoder<Effect> where Effect : Mongo.WriteEffect@frozen struct Updates<ID> where ID : SendableStores information about an update operation.
@frozen enum Upserting<Value, ID> where Value : BSONDecodable, Value : Sendable, ID : BSONDecodable, ID : Sendable@frozen enum ValidationAction@frozen enum ValidationLevel@frozen struct WriteErrorprotocol Sendablevar fields: BSON.Documentlet writeConcern: WriteConcern?protocol Command<Response> : SendableA type that represents a MongoDB command. All public command types (and command protocols) ultimately inherit from this protocol.
protocol CopyableA type whose values can be implicitly or explicitly copied.
protocol Escapableinit(_ collection: Mongo.Collection, writeConcern: Mongo.WriteConcern? = nil, deletes encode: (inout Mongo.DeleteListEncoder<Effect>) throws -> ()) rethrows init(_ collection: Mongo.Collection, writeConcern: Mongo.WriteConcern? = nil, with configure: (inout Self) throws -> (), deletes encode: (inout Mongo.DeleteListEncoder<Effect>) throws -> ()) rethrows static var type: Mongo.CommandType { get }var outline: Mongo.OutlineVector? { get }subscript(key: Ordered) -> Bool? { get set } subscript(key: Let, yield: (inout Mongo.LetEncoder) -> ()) -> Void { mutating get } @frozen enum Let@frozen enum Orderedtypealias ExecutionPolicy = Effect.ExecutionPolicyUpdate only supports retryable writes in single-write mode.
typealias Response = Mongo.DeleteResponsevar readConcern: Never? { get }var readConcernLabel: Mongo.ReadConcern?? { get }var timeout: Mongo.MaxTime { get }Returns computed.
var writeConcernLabel: Mongo.WriteConcern? { get }import MongoDBprotocol ImplicitSessionCommand<Response> : Mongo.CommandA type that can encode a MongoDB command that can be run as part of a session, which can be implicitly generated if the command is sent to a deployment at large.
protocol TransactableCommand<Response> : Mongo.Commandstatic var autocommits: Bool { get }Indicates if this command autocommits, meaning it supports retryable writes.