Skip to main content
Module

x/mongo/mod.ts>Bson.UUID#toHexString

MongoDB driver for Deno
Extremely Popular
Go to Latest
method Bson.UUID.prototype.toHexString
Re-export
import { Bson } from "https://deno.land/x/mongo@v0.31.0/mod.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