MCPcopy
hub / github.com/prisma/prisma / InputField

Class InputField

packages/client-generator-js/src/TSClient/Input.ts:13–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11import { GenerateContext } from './GenerateContext'
12
13export class InputField implements Generable {
14 constructor(
15 protected readonly field: DMMF.SchemaArg,
16 protected readonly context: GenerateContext,
17 protected readonly source?: string,
18 ) {}
19 public toTS(): string {
20 const property = buildInputField(this.field, this.context, this.source)
21 return ts.stringify(property)
22 }
23}
24
25export function buildInputField(field: DMMF.SchemaArg, context: GenerateContext, source?: string): ts.Property {
26 const tsType = buildAllFieldTypes(field.inputTypes, context, source)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected