MCPcopy
hub / github.com/prisma/prisma / getOwnKeys

Function getOwnKeys

packages/client/src/runtime/core/model/applyFluent.ts:124–128  ·  view source on GitHub ↗
(client: Client, dmmfModelName: string)

Source from the content-addressed store, hash-verified

122
123// the only accessible fields are relations to be chained on
124function getOwnKeys(client: Client, dmmfModelName: string) {
125 return client._runtimeDataModel.models[dmmfModelName].fields
126 .filter((field) => field.kind === 'object') // relations
127 .map((field) => field.name)
128}

Callers 1

applyFluentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected