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

x/hex/src/data/deps.ts>mongo.DBRef

An ecosystem delivering practices, philosophy and portability.
Go to Latest
class mongo.DBRef
Re-export
import { mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { DBRef } = mongo;

A class representation of the BSON DBRef type.

Constructors

new
DBRef(
collection: string,
oid: ObjectId,
db?: string,
fields?: Document,
)

Properties

_bsontype: string
collection: string
optional
db: string
fields: Document

Methods

toExtendedJSON(options?: EJSONOptions): DBRefLike
toJSON(): DBRefLike & Document