Skip to main content
Extremely Popular
Go to Latest
method Bson.ObjectId.createFromHexString
Re-export
import { Bson } from "https://deno.land/x/mongo@v0.31.0/mod.ts";
const { ObjectId } = 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.

Returns

ObjectId