BSONObjectID[…]
is an object that represents an Object ID in the BSON format.


BSONObjectID
BSONObjectID[…]
is an object that represents an Object ID in the BSON format.
Details and Options
- To use BSONObjectID, you first need to load MongoLink using Needs["MongoLink`"].
- BSONObjectID is a special type of the "BSON" format.
- A BSONObjectID object is typically created automatically when a document is inserted into a MongoDB collection, and is commonly used as the primary key of the document.
- Normal[BSONObjectID[…]] returns a Dataset representing the information contained in BSONObjectID[…] in a readable form.
Examples
Basic Examples (1)
Create a BSONObjectID from a string:
Use Normal to represent the BSONObjectID in human readable form:
Tech Notes
Related Guides
Text
Wolfram Research (2018), BSONObjectID, Wolfram Language function, https://reference.wolfram.com/language/MongoLink/ref/BSONObjectID.html.
CMS
Wolfram Language. 2018. "BSONObjectID." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/MongoLink/ref/BSONObjectID.html.
APA
Wolfram Language. (2018). BSONObjectID. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/MongoLink/ref/BSONObjectID.html
BibTeX
@misc{reference.wolfram_2025_bsonobjectid, author="Wolfram Research", title="{BSONObjectID}", year="2018", howpublished="\url{https://reference.wolfram.com/language/MongoLink/ref/BSONObjectID.html}", note=[Accessed: 16-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_bsonobjectid, organization={Wolfram Research}, title={BSONObjectID}, year={2018}, url={https://reference.wolfram.com/language/MongoLink/ref/BSONObjectID.html}, note=[Accessed: 16-August-2025]}