Bson.ObjectId
Represents the MongoDB ObjectId
:oid- contains a binary size 12
iex> inspect %Bson.ObjectId{} “ObjectId()” iex> inspect %Bson.ObjectId{oid: “ ”} “ObjectId(0f1b01020304050607080910)”
Summary↑
| from_string(object_id) | Converts a string into a %Bson.ObjectId |
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)”