Enumerations

The following enumerations are available globally.

  • A command monitoring event.

    See more

    Declaration

    Swift

    public enum CommandEvent : Publishable
  • An SDAM monitoring event related to topology updates.

    See more

    Declaration

    Swift

    public enum SDAMEvent : Publishable
  • Enum representing a BSON value.

    See also

    bsonspec.org
    See more

    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 more

    Declaration

    Swift

    public enum BSONError
  • The possible types of BSON values and their corresponding integer values.

    See more

    Declaration

    Swift

    public enum BSONType : UInt8
  • Enum representing the various encoding/decoding strategy pairs for Dates. Set these on a MongoClient, MongoDatabase, or MongoCollection so that the strategies will be applied when converting Dates between their BSON representations and their representations in (non BSONDocument) Codable types.

    As per the BSON specification, the default strategy is to encode Dates as BSON datetime objects.

    See also

    bsonspec.org
    See more

    Declaration

    Swift

    public enum DateCodingStrategy : RawRepresentable
  • Enum representing the various encoding/decoding strategy pairs for Dates. Set these on a MongoClient, MongoDatabase, or MongoCollection so that the strategies will be applied when converting UUIDs between their BSON representations and their representations in (non BSONDocument) Codable types.

    As per the BSON specification, the default strategy is to encode UUIDs as BSON binary types with the UUID subtype.

    See also

    bsonspec.org
    See more

    Declaration

    Swift

    public enum UUIDCodingStrategy : RawRepresentable
  • Enum representing the various encoding/decoding strategy pairs for Dates. Set these on a MongoClient, MongoDatabase, or MongoCollection so that the strategies will be applied when converting Datas between their BSON representations and their representations in (non BSONDocument) Codable types.

    As per the BSON specification, the default strategy is to encode Datas as BSON binary types with the generic binary subtype.

    See also

    bsonspec.org
    See more

    Declaration

    Swift

    public enum DataCodingStrategy : RawRepresentable
  • An enum representing the type of operation for this change event.

    See more

    Declaration

    Swift

    public enum OperationType : String, Codable
  • An index to “hint” or force MongoDB to use when performing a query.

    See more

    Declaration

    Swift

    public enum IndexHint : Codable
  • Enum encompassing operations that can be run as part of a bulkWrite.

    See more

    Declaration

    Swift

    public enum WriteModel<CollectionType> where CollectionType : Decodable, CollectionType : Encodable
  • Indicates which document to return in a find and modify operation.

    See more

    Declaration

    Swift

    public enum ReturnDocument : String, Decodable
  • Namespace containing all the error types introduced by this driver and their dependent types.

    See more

    Declaration

    Swift

    public enum MongoError
  • The possible types of MongoCursor or MongoCursor an operation can return.

    See more

    Declaration

    Swift

    public enum MongoCursorType
  • Describes the type of data store returned when executing listCollections.

    See more

    Declaration

    Swift

    public enum CollectionType : RawRepresentable, Codable