Enumerations
The following enumerations are available globally.
-
A command monitoring event.
See moreDeclaration
Swift
public enum CommandEvent : Publishable
-
An SDAM monitoring event related to topology updates.
See moreDeclaration
Swift
public enum SDAMEvent : Publishable
-
Declaration
Swift
public enum BSON
extension BSON: ExpressibleByStringLiteral
extension BSON: ExpressibleByBooleanLiteral
extension BSON: ExpressibleByFloatLiteral
extension BSON: ExpressibleByIntegerLiteral
extension BSON: ExpressibleByDictionaryLiteral
extension BSON: ExpressibleByArrayLiteral
extension BSON: Equatable
extension BSON: Hashable
extension BSON: Codable
-
Namespace containing all the error types introduced by this BSON library and their dependent types.
See moreDeclaration
Swift
public enum BSONError
-
The possible types of BSON values and their corresponding integer values.
See moreDeclaration
Swift
public enum BSONType : UInt8
-
Enum representing the various encoding/decoding strategy pairs for
Date
s. Set these on aMongoClient
,MongoDatabase
, orMongoCollection
so that the strategies will be applied when convertingDate
s between their BSON representations and their representations in (nonBSONDocument
)Codable
types.As per the BSON specification, the default strategy is to encode
Date
s as BSON datetime objects.See also
bsonspec.orgDeclaration
Swift
public enum DateCodingStrategy : RawRepresentable
-
Enum representing the various encoding/decoding strategy pairs for
Date
s. Set these on aMongoClient
,MongoDatabase
, orMongoCollection
so that the strategies will be applied when convertingUUID
s between their BSON representations and their representations in (nonBSONDocument
)Codable
types.As per the BSON specification, the default strategy is to encode
UUID
s as BSON binary types with the UUID subtype.See also
bsonspec.orgDeclaration
Swift
public enum UUIDCodingStrategy : RawRepresentable
-
Enum representing the various encoding/decoding strategy pairs for
Date
s. Set these on aMongoClient
,MongoDatabase
, orMongoCollection
so that the strategies will be applied when convertingData
s between their BSON representations and their representations in (nonBSONDocument
)Codable
types.As per the BSON specification, the default strategy is to encode
Data
s as BSON binary types with the generic binary subtype.See also
bsonspec.orgDeclaration
Swift
public enum DataCodingStrategy : RawRepresentable
-
An enum representing the type of operation for this change event.
See moreDeclaration
Swift
public enum OperationType : String, Codable
-
An index to “hint” or force MongoDB to use when performing a query.
See moreDeclaration
Swift
public enum IndexHint : Codable
-
Enum encompassing operations that can be run as part of a
See morebulkWrite
.Declaration
Swift
public enum WriteModel<CollectionType> where CollectionType : Decodable, CollectionType : Encodable
-
Indicates which document to return in a find and modify operation.
See moreDeclaration
Swift
public enum ReturnDocument : String, Decodable
-
Namespace containing all the error types introduced by this driver and their dependent types.
See moreDeclaration
Swift
public enum MongoError
-
The possible types of
See moreMongoCursor
orMongoCursor
an operation can return.Declaration
Swift
public enum MongoCursorType
-
Describes the type of data store returned when executing
See morelistCollections
.Declaration
Swift
public enum CollectionType : RawRepresentable, Codable