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

Method getObjectQueryKeys

packages/core/src/utils/Utils.ts:1131–1141  ·  view source on GitHub ↗
(
    obj: T,
  )

Source from the content-addressed store, hash-verified

1129 }
1130
1131 static getObjectQueryKeys<T extends Dictionary, K extends string = Extract<keyof T, string>>(
1132 obj: T,
1133 ): (K | RawQueryFragmentSymbol)[] {
1134 return Reflect.ownKeys(obj).filter(key => {
1135 if (!Object.prototype.propertyIsEnumerable.call(obj, key)) {
1136 return false;
1137 }
1138
1139 return typeof key === 'string' || Raw.isKnownFragmentSymbol(key);
1140 }) as (K | RawQueryFragmentSymbol)[];
1141 }
1142}

Callers 15

buildPopulateOrderByFunction · 0.80
buildToManyOrderByFunction · 0.80
wrapPaginateSubQueryMethod · 0.80
processMethod · 0.80
isStrictMethod · 0.80
unwrapMethod · 0.80
willAutoJoinMethod · 0.80
shouldInlineMethod · 0.80
inlineChildPayloadMethod · 0.80
shouldAutoJoinMethod · 0.80
autoJoinMethod · 0.80

Calls 2

filterMethod · 0.80
isKnownFragmentSymbolMethod · 0.80

Tested by

no test coverage detected