MCPcopy
hub / github.com/prisma/prisma / buildMapForRuntime

Function buildMapForRuntime

packages/client-common/src/runtimeDataModel.ts:50–56  ·  packages/client-common/src/runtimeDataModel.ts::buildMapForRuntime
(list: readonly T[])

Source from the content-addressed store, hash-verified

48}
49
50function buildMapForRuntime<T extends { name: string }>(list: readonly T[]): Record<string, Omit<T, class="st">'name'>> {
51 const result: Record<string, Omit<T, class="st">'name'>> = {}
52 for (const { name, ...rest } of list) {
53 result[name] = rest
54 }
55 return result
56}

Callers 1

dmmfToRuntimeDataModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected