Enumerations
The following enumerations are available globally.
-
The two categories of events that can be monitored. One or both can be enabled for a
See moreMongoClient
.Declaration
Swift
public enum MongoEventType
-
The possible types of BSON values and their corresponding integer values.
See moreDeclaration
Swift
public enum BSONType : UInt32
-
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 (nonDocument
)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
UUID
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 (nonDocument
)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
Data
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 (nonDocument
)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
-
Indicates which document to return in a find and modify operation.
See moreDeclaration
Swift
public enum ReturnDocument : String, Decodable
-
An index to
See morehint
or force MongoDB to use when performing a query.Declaration
Swift
public enum Hint : Codable
-
The possible types of
See moreMongoCursor
an operation can return.Declaration
Swift
public enum CursorType
-
The possible errors corresponding to types of errors encountered in the MongoDB server. These errors may contain labels providing additional information on their origin.
See moreDeclaration
Swift
public enum ServerError : MongoError
-
The possible errors caused by improper use of the driver by the user.
See moreDeclaration
Swift
public enum UserError : MongoError
-
The possible errors that can occur unexpectedly during runtime.
See moreDeclaration
Swift
public enum RuntimeError : MongoError