Bson.Type

Represents the type of a BSON value

Values

ValueMeaning
end0x00

End marker - should never occur explicitly

double_0x01

A 64-bit floating point value

string0x02

A UTF-8 string

object0x03

An object aka. dictionary of string to Bson

array0x04

An array of BSON values

binData0x05

Raw binary data (ubyte[])

undefined0x06

Deprecated

objectID0x07

BSON Object ID (96-bit)

bool_0x08

Boolean value

date0x09

Date value (UTC)

null_0x0A

Null value

regex0x0B

Regular expression

dbRef0x0C

Deprecated

code0x0D

JaveScript code

symbol0x0E

Symbol/variable name

codeWScope0x0F

JavaScript code with scope

int_0x10

32-bit integer

timestamp0x11

Timestamp value

long_0x12

64-bit integer

minKey0xff

Internal value

maxKey0x7f

Internal value

Endend
Deprecated: Use `end` instead.

Compatibility alias

Doubledouble_
Deprecated: Use `double_` instead.

Compatibility alias

Stringstring
Deprecated: Use `string` instead.

Compatibility alias

Objectobject
Deprecated: Use `object` instead.

Compatibility alias

Arrayarray
Deprecated: Use `array` instead.

Compatibility alias

BinDatabinData
Deprecated: Use `binData` instead.

Compatibility alias

Undefinedundefined
Deprecated: Use `undefined` instead.

Compatibility alias

ObjectIDobjectID
Deprecated: Use `objectID` instead.

Compatibility alias

Boolbool_
Deprecated: Use `bool_` instead.

Compatibility alias

Datedate
Deprecated: Use `date` instead.

Compatibility alias

Nullnull_
Deprecated: Use `null_` instead.

Compatibility alias

Regexregex
Deprecated: Use `regex` instead.

Compatibility alias

DBRefdbRef
Deprecated: Use `dBRef` instead.

Compatibility alias

Codecode
Deprecated: Use `code` instead.

Compatibility alias

Symbolsymbol
Deprecated: Use `symbol` instead.

Compatibility alias

CodeWScopecodeWScope
Deprecated: Use `codeWScope` instead.

Compatibility alias

Intint_
Deprecated: Use `int_` instead.

Compatibility alias

Timestamptimestamp
Deprecated: Use `timestamp` instead.

Compatibility alias

Longlong_
Deprecated: Use `long_` instead.

Compatibility alias

MinKeyminKey
Deprecated: Use `minKey` instead.

Compatibility alias

MaxKeymaxKey
Deprecated: Use `maxKey` instead.

Compatibility alias

Meta