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

x/hex/src/lib/data/deps.ts>mongo.ObjectId.generate

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
method mongo.ObjectId.generate
Re-export
import { mongo } from "https://deno.land/x/hex@0.6.5/src/lib/data/deps.ts";
const { ObjectId } = mongo;

Generate a 12 byte id buffer used in ObjectId's

Parameters

optional
time: number
  • pass in a second based timestamp.

Returns

Uint8Array