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

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

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

Converts to its JSON the 24 character hex string representation.

Returns

string