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

Method getFieldName

packages/sql/src/query/QueryBuilder.ts:3149–3152  ·  view source on GitHub ↗
(name: string, customAlias?: string)

Source from the content-addressed store, hash-verified

3147 ): (string | RawQueryFragment)[] {
3148 const ret: InternalField<T>[] = [];
3149 const getFieldName = (name: string, customAlias?: string) => {
3150 const alias = customAlias ?? (type === 'groupBy' ? null : undefined);
3151 return this.helper.mapper(name, this.type, undefined, alias, schema);
3152 };
3153
3154 fields.forEach(originalField => {
3155 if (typeof originalField !== 'string') {

Callers

nothing calls this directly

Calls 1

mapperMethod · 0.80

Tested by

no test coverage detected