PrismaUtils prismaCreate
does not respect Prisma.XxxxInput
interface
#1135
Labels
enhancement
New feature or request
Hi !
Running through the documentation, I applied the chapter "Creating input for mutations" and found a strange behavior :
This perfectly TS compile, while
Prisma.UserCreateInput
is like this :The consequence is in the resolver, when using it like so :
And the generate GraphQL is like so :
(empty input)
Which lead to runtime errors; because the GraphQL schema is not consistent to what is passed to the resolver.
I observed the exact same behavior with any kind of more complex configuration, example :
My observation is that
prismaCreate.fields
is basically just not producing something type-checkable with a type like so :The text was updated successfully, but these errors were encountered: