Bson.ObjectId (cbson v0.1.5) View Source
Represents the MongoDB ObjectId
:oid
- contains a binary size 12
iex> inspect %Bson.ObjectId{} "ObjectId()" iex> inspect %Bson.ObjectId{oid: " "} "ObjectId(0f1b01020304050607080910)" iex> to_string %Bson.ObjectId{oid: " "} "0f1b01020304050607080910"
Link to this section Summary
Functions
Converts a string into a %Bson.ObjectId
Link to this section Functions
Converts a string into a %Bson.ObjectId
:object_id
- A string representing the BSON Object Id
Usage:
iex> inspect Bson.ObjectId.from_string("52e0e5a10000020003000004") "ObjectId(52e0e5a10000020003000004)"