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

Returns the UUID id as a 32 or 36 character hex string representation, excluding/including dashes (defaults to 36 character dash separated)

Parameters

optional
includeDashes = [UNSUPPORTED]
  • should the string exclude dash-separators.

Returns

string