ravendb
Version:
RavenDB client for Node.js
20 lines • 1.57 kB
TypeScript
import { ILazySessionOperations } from "./ILazySessionOperations.js";
import { DocumentSession } from "../../DocumentSession.js";
import { ILazyLoaderWithInclude } from "../../Loaders/ILazyLoaderWithInclude.js";
import { ObjectTypeDescriptor, EntitiesCollectionObject } from "../../../../Types/index.js";
import { Lazy } from "../../../Lazy.js";
import { SessionLoadStartingWithOptions } from "../../IDocumentSession.js";
import { ConditionalLoadResult } from "../../ConditionalLoadResult.js";
export declare class LazySessionOperations implements ILazySessionOperations {
protected _delegate: DocumentSession;
constructor(delegate: DocumentSession);
include(path: string): ILazyLoaderWithInclude;
load<TEntity extends object>(ids: string[], clazz: ObjectTypeDescriptor<TEntity>): Lazy<EntitiesCollectionObject<TEntity>>;
load<TEntity extends object>(id: string, clazz: ObjectTypeDescriptor<TEntity>): Lazy<TEntity | null>;
load<TEntity extends object>(ids: string[]): Lazy<EntitiesCollectionObject<TEntity>>;
load<TEntity extends object>(id: string): Lazy<TEntity | null>;
loadStartingWith<TEntity extends object>(idPrefix: string, opts: SessionLoadStartingWithOptions<TEntity>): Lazy<EntitiesCollectionObject<TEntity>>;
loadStartingWith<TEntity extends object>(idPrefix: string): Lazy<EntitiesCollectionObject<TEntity>>;
conditionalLoad<TEntity extends object>(id: string, changeVector: string, clazz: ObjectTypeDescriptor<TEntity>): Lazy<ConditionalLoadResult<TEntity>>;
}
//# sourceMappingURL=LazySessionOperations.d.ts.map