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

Method keys

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

Source from the content-addressed store, hash-verified

1095 }
1096
1097 static keys<T extends object>(obj: T): (keyof T)[] {
1098 return Object.keys(obj) as (keyof T)[];
1099 }
1100
1101 static values<T extends object>(obj: T): T[keyof T][] {
1102 return Object.values(obj) as T[keyof T][];

Callers 15

renameFieldsMethod · 0.45
convertObjectIdsMethod · 0.45
_findMethod · 0.45
runQueryMethod · 0.45
createUpdatePayloadMethod · 0.45
countByMethod · 0.45
nativeInsertManyFunction · 0.45
nativeUpdateFunction · 0.45
nativeUpdateManyFunction · 0.45
findTPTChildAliasFunction · 0.45
renderPartialIndexWhereFunction · 0.45
normalizeFieldsFunction · 0.45

Calls

no outgoing calls

Tested by 4

compareFunction · 0.36
createEntitiesFunction · 0.36
assertFunction · 0.36
afterFlushMethod · 0.36