Replies: 1 comment
-
This feature is very needed not only for I know some conversation is happening here but I haven't seen any result into it. I hope they do it quickly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am able to successfully generate model definitions using nexus-prisma, so that they can be forwarded to Nexus's objectType function. In the attached example I have a User model defined in my schema.prisma file, and with nexus-prisma, I am correctly generating types needed in my graphQL layer for the User model.
It would be useful to have nexus-prisma support Nexus's inputObjectType API so that the same UserWhereInput typesafety that exists in Prisma Client (on my server) can exist for my graphQL client (frontend app).
The following screenshot shows code that isn't supported (ie. UserWhereInput is not exported in nexus-prisma), but would be my wish for additional nexus-prisma functionality:
Are there any plans to support this use-case? Happy to answer any clarifying questions!
Beta Was this translation helpful? Give feedback.
All reactions