flâneur — a map of the web's best reading

BSON Types — MongoDB Manual

mongodb.com · 1,760 words · saved by 1 readers

BSON is a binary serialization format used to store documents and make remote procedure calls in MongoDB. The BSON specification is located at bsonspec.org . Each BSON type has both integer and string identifiers as listed in the following table: The $type operator supports using these values to query fields by their BSON type. $type also supports the number alias, which matches the integer, decimal, double, and long BSON types. The $type aggregation operator returns the BSON type of its argument. The $isNumber aggregation operator returns true if its argument is a BSON integer, decimal, double, or long. New in version 4.4 To determine a field's type, see Type Checking. If you convert BSON to JSON, see the Extended JSON reference. The following sections describe special considerations for particular BSON types. A BSON binary binData value is a byte array. A binData value has a subtype that indicates how to interpret the binary data. The following table shows the subtypes. Compressed

BSON Types - Database Manual - MongoDB Docs Docs Menu Ask MongoDB AI Docs Home / Development Docs Home / Development Docs Home / Development BSON Types Copy page BSON is a binary serialization format used to store documents and make remote procedure calls in MongoDB. The BSON specification is located at bsonspec.org . Each BSON type has both integer and string identifiers as listed in the following table: Type Number Alias Notes Double 1 "double" String 2 "string" Object 3 "object" Array 4 "array" Binary data 5 "binData" Undefined 6 "undefined" Deprecated. ObjectId 7 "objectId" Boolean 8 "bool

Explore this link on the map →

related reading