hydrate-mongodb
Version:
An Object Document Mapper (ODM) for MongoDB.
15 lines (14 loc) • 596 B
TypeScript
import { InternalSession } from "./session";
import { EntityMapping } from "./mapping/entityMapping";
import { ResultCallback } from "./core/callback";
export declare class Reference {
mapping: EntityMapping;
private _id;
id: string;
constructor(mapping: EntityMapping, _id: any);
fetch(session: InternalSession, callback: ResultCallback<any>): void;
equals(other: any): boolean;
static areEqual(value1: any, value2: any): boolean;
static isReference(obj: any): boolean;
static fetch(session: InternalSession, obj: any, callback: ResultCallback<any>): void;
}