RunCommandOptions
public struct RunCommandOptions : Encodable
Options to use when running a command against a MongoDatabase
.
-
An optional
ReadConcern
to use for this operation. This option should only be used when executing a command that reads.Declaration
Swift
public var readConcern: ReadConcern?
-
An optional
ReadPreference
to use for this operation. This option should only be used when executing a command that reads.Declaration
Swift
public var readPreference: ReadPreference?
-
An optional
WriteConcern
to use for this operation. This option should only be used when executing a command that writes.Declaration
Swift
public var writeConcern: WriteConcern?
-
Convenience initializer allowing any/all parameters to be omitted or optional.
Declaration
Swift
public init( readConcern: ReadConcern? = nil, readPreference: ReadPreference? = nil, writeConcern: WriteConcern? = nil )