Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method Bson.ObjectId.prototype.toHexString
Re-export
import { Bson } from "https://deno.land/x/model@v1.2/dependencies/mongo.ts";
const { ObjectId } = Bson;

Returns the ObjectId id as a 24 character hex string representation

Returns

string