Enumerations

The following enumerations are available globally.

  • The two categories of events that can be monitored. One or both can be enabled for a MongoClient.

    See more

    Declaration

    Swift

    public enum MongoEventType
  • 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 UUIDs. 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 Datas. 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
  • Indicates which document to return in a find and modify operation.

    See more

    Declaration

    Swift

    public enum ReturnDocument : String, Decodable
  • An index to hint or force MongoDB to use when performing a query.

    See more

    Declaration

    Swift

    public enum Hint : Codable
  • The possible types of MongoCursor an operation can return.

    See more

    Declaration

    Swift

    public enum CursorType