BSONType
public enum BSONType : UInt8
The possible types of BSON values and their corresponding integer values.
-
An invalid type
Declaration
Swift
case invalid = 0x00
-
64-bit binary floating point
Declaration
Swift
case double = 0x01
-
UTF-8 string
Declaration
Swift
case string = 0x02
-
BSON document
Declaration
Swift
case document = 0x03
-
Array
Declaration
Swift
case array = 0x04
-
Binary data
Declaration
Swift
case binary = 0x05
-
Undefined value - deprecated
Declaration
Swift
case undefined = 0x06
-
A MongoDB ObjectID.
Declaration
Swift
case objectID = 0x07
-
A boolean
Declaration
Swift
case bool = 0x08
-
UTC datetime, stored as UTC milliseconds since the Unix epoch
Declaration
Swift
case datetime = 0x09
-
Null value
Declaration
Swift
case null = 0x0A
-
A regular expression
Declaration
Swift
case regex = 0x0B
-
A database pointer - deprecated
Declaration
Swift
case dbPointer = 0x0C
-
Javascript code
Declaration
Swift
case code = 0x0D
-
A symbol - deprecated
Declaration
Swift
case symbol = 0x0E
-
JavaScript code w/ scope
Declaration
Swift
case codeWithScope = 0x0F
-
32-bit integer
Declaration
Swift
case int32 = 0x10
-
Special internal type used by MongoDB replication and sharding
Declaration
Swift
case timestamp = 0x11
-
64-bit integer
Declaration
Swift
case int64 = 0x12
-
128-bit decimal floating point
Declaration
Swift
case decimal128 = 0x13
-
Special type which compares lower than all other possible BSON element values
Declaration
Swift
case minKey = 0xFF
-
Special type which compares higher than all other possible BSON element values
Declaration
Swift
case maxKey = 0x7F