MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / getAliasMap

Method getAliasMap

packages/sql/src/query/QueryBuilder.ts:2442–2446  ·  view source on GitHub ↗

* @internal

()

Source from the content-addressed store, hash-verified

2440 * @internal
2441 */
2442 getAliasMap(): Dictionary<EntityName> {
2443 return Object.fromEntries(
2444 Object.entries(this.#state.aliases).map(([key, value]: [string, Alias<any>]) => [key, value.entityName]),
2445 );
2446 }
2447
2448 /**
2449 * Executes this QB and returns the raw results, mapped to the property names (unless disabled via last parameter).

Callers 4

whereMethod · 0.95
processOrderByMethod · 0.95
joinReferenceMethod · 0.95
buildFieldsFunction · 0.80

Calls 2

entriesMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected