Closed DregondRahl closed 3 years ago
Update requires "set:" for each input
input UserUpdateInput { countPosts: IntFieldUpdateOperationsInput email: StringFieldUpdateOperationsInput id: StringFieldUpdateOperationsInput name: NullableStringFieldUpdateOperationsInput posts: PostUpdateManyWithoutAuthorInput }
Create works without using "set:"
input UserCreateInput { countPosts: Int email: String! id: String name: String posts: PostCreateManyWithoutAuthorInput }
Primsa generates below, which makes it optional.
export type UserUpdateInput = { id?: string | StringFieldUpdateOperationsInput email?: string | StringFieldUpdateOperationsInput name?: string | NullableStringFieldUpdateOperationsInput | null countPosts?: number | IntFieldUpdateOperationsInput posts?: PostUpdateManyWithoutAuthorInput }
Can we generate it in a similar way?
Thanks,
We can't generate like Prisma. Because Prisma generate TypeScript code, they can add many types for one field but in GraphQL, we can just add one type
More info will be in this issue #136
Update requires "set:" for each input
Create works without using "set:"
Primsa generates below, which makes it optional.
Can we generate it in a similar way?
Thanks,