@mikro-orm/core
Version:
TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.
13 lines (12 loc) • 660 B
TypeScript
import type { EntityMetadata, PopulateOptions } from '../typings';
import { LoadStrategy, ReferenceKind } from '../enums';
/**
* @internal
*/
export declare function expandDotPaths<Entity>(meta: EntityMetadata<Entity>, populate?: readonly (string | PopulateOptions<Entity>)[], normalized?: boolean): PopulateOptions<Entity>[];
/**
* Returns the loading strategy based on the provided hint.
* If `BALANCED` strategy is used, it will return JOINED if the property is a to-one relation.
* @internal
*/
export declare function getLoadingStrategy(strategy: LoadStrategy | `${LoadStrategy}`, kind: ReferenceKind): LoadStrategy.SELECT_IN | LoadStrategy.JOINED;