MongoLink`
MongoLink`

BSONObjectID

BSONObjectID[]

is an object that represents an Object ID in the BSON format.

Details

  • 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)

In[1]:=
Click for copyable input

Create a BSONObjectID from a string:

In[1]:=
Click for copyable input
Out[1]=

Use Normal to represent the BSONObjectID in human readable form:

In[1]:=
Click for copyable input
Out[1]=