Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/model/dependencies/mongo.ts>Bson.UUID#toJSON

model based mongo for deno
Latest
method Bson.UUID.prototype.toJSON
Re-export
import { Bson } from "https://deno.land/x/model@v1.2/dependencies/mongo.ts";
const { UUID } = Bson;

Converts the id into its JSON string representation. A 36 character (dashes included) hex string in the format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Returns

string