property MongoAdapterOptionsBase.objectIdCtor
Since 0.1.0

The driver's ObjectId constructor when MongoAdapterOptions.client is injected.

A MongoClient instance does not expose the driver's ObjectId class. Supplying it preserves the adapter's _id conversion for injected clients while still avoiding a lazy driver import. It is not needed on the lazy path because that import supplies the constructor.

Type

Usage

import { type MongoAdapterOptionsBase } from "database-plugin/src/index.ts";