We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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,
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
No branches or pull requests
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,
The text was updated successfully, but these errors were encountered: