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

x/denodb/deps.ts>Bson.ObjectId#toString

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Go to Latest
method Bson.ObjectId.prototype.toString
import { Bson } from "https://deno.land/x/denodb@v1.1.0/deps.ts";
const { ObjectId } = Bson;

Converts the id into a 24 character hex string for printing

Parameters

optional
format: string
  • The Buffer toString format parameter.

Returns

string