Skip to main content
Module

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

MongoDB driver for Deno
Extremely Popular
Go to Latest
method Bson.UUID.prototype.toString
import { Bson } from "https://deno.land/x/mongo@v0.31.2/mod.ts";
const { UUID } = Bson;

Converts the id into a 36 character (dashes included) hex string, unless a encoding is specified.

Parameters

optional
encoding: "hex" | "base64"

Returns

string