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
  • The possible types of BSON values and their corresponding integer values.

    See more

    Declaration

    Swift

    public enum BSONType : UInt32
  • 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 Document) 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 Document) 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 Document) 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
  • Describes the modes for configuring the fullDocument field of a change stream document.

    See more

    Declaration

    Swift

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

    See more

    Declaration

    Swift

    public enum Hint : 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
  • The possible types of MongoCursor or MongoCursor an operation can return.

    See more

    Declaration

    Swift

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

    See more

    Declaration

    Swift

    public enum CollectionType : RawRepresentable, Codable