Skip to main content
Module

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

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
class mongo.DBRef
Re-export
import { mongo } from "https://deno.land/x/hex@0.6.5/src/lib/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