(field: DMMF.SchemaField, modelName: string)
| 109 | } |
| 110 | |
| 111 | export 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 |
no outgoing calls
no test coverage detected