MCPcopy
hub / github.com/prisma/prisma / getModelFieldArgsName

Function getModelFieldArgsName

packages/client-generator-ts/src/utils.ts:111–115  ·  view source on GitHub ↗
(field: DMMF.SchemaField, modelName: string)

Source from the content-addressed store, hash-verified

109}
110
111export function getModelFieldArgsName(field: DMMF.SchemaField, modelName: string) {
112 // Example: User$postsArgs
113 // So it doesn't conflict with the generated type, like UserPostsArgs
114 return `${modelName}$${field.name}Args`
115}
116
117// we need names for all top level args,
118// as GraphQL doesn't have the concept of unnamed args

Callers 2

argsTypesMethod · 0.90
getFieldArgNameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected