Bson.ObjectId

Represents the MongoDB ObjectId

iex> inspect %Bson.ObjectId{} “ObjectId()” iex> inspect %Bson.ObjectId{oid: “ ”} “ObjectId(0f1b01020304050607080910)”

Source

Summary

from_string(object_id)

Converts a string into a %Bson.ObjectId

Functions

from_string(object_id)

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

Source