BSON Types — MongoDB Manual
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
related reading
- Welcome to the MongoDB Docs - MongoDB Documentation - MongoDB Docsmongodb.com
- Welcome to the MongoDB Docs - MongoDB Documentation - MongoDB Docsmongodb.com
- mongo/src/mongo/db/query/README.md at master · mongodb/mongogithub.com
- SchemaTypes - Mongoose v9.8.0mongoosejs.com
- How To Secure MongoDB on Ubuntu 20.04 | DigitalOceandigitalocean.com
- Contract ABI Specification — Solidity 0.8.38-develop documentationdocs.soliditylang.org
- SQL vs NoSQL in 8 Examples | Towards Data Sciencetowardsdatascience.com
- Using TypeScript with Mongoose - Mongoose v9.8.0mongoosejs.com
- GitHub - redis/redis-om-node: Object mapping, and more, for Redis and Node.js. Written in TypeScript.github.com
- Big Osamwho.dev
- Understanding IndexedDB. The complete guide.blog.xnim.me
- GitHub - Experience-Monks/math-as-code: a cheat-sheet for mathematical notation in code formgithub.com