hydrate-mongodb
Version:
An Object Document Mapper (ODM) for MongoDB.
17 lines (16 loc) • 497 B
TypeScript
import { MappingError } from "./mappingError";
import { InternalSession } from "../session";
import { Observer } from "../observer";
export declare class ReadContext {
session: InternalSession;
path: string;
errors: MappingError[];
hasErrors: boolean;
observer: Observer;
fetches: string[];
parent: Object;
constructor(session: InternalSession);
addError(message: string, path?: string): void;
addFetch(path: string): void;
getErrorMessage(): string;
}