Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
method mongo.Bson.ObjectId.createFromHexString
Re-export
import { mongo } from "https://deno.land/x/hex@0.6.5/src/lib/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.