Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hex/src/data/deps.ts>mongo.Bson.ObjectId.createFromHexString

An ecosystem delivering practices, philosophy and portability.
Go to Latest
method mongo.Bson.ObjectId.createFromHexString
Re-export
import { mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { ObjectId } = mongo.Bson;

Creates an ObjectId from a hex string representation of an ObjectId.

Parameters

hexString: string
  • create a ObjectId from a passed in 24 character hexstring.