Skip to main content
Module

x/atlas_sdk/deps.ts>ObjectId#toString

TypeSafe MongoDB Atlas Data API SDK for Deno, Deno Deploy and Node.js
Latest
method ObjectId.prototype.toString
import { ObjectId } from "https://deno.land/x/atlas_sdk@v1.1.3/deps.ts";

Converts the id into a 24 character hex string for printing, unless encoding is provided.

Parameters

optional
encoding: "hex" | "base64"
  • hex or base64

Returns

string