Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/web_bson/src/bson.ts>ObjectId.generate

web_bson is a fork from mongodb/js-bson
Very Popular
Go to Latest
method ObjectId.generate
Re-export
import { ObjectId } from "https://deno.land/x/web_bson@v0.2.5/src/bson.ts";

Generate a 12 byte id buffer used in ObjectId's

Parameters

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

Returns

Uint8Array