Replies: 1 comment 10 replies
-
I do not believe that something like this exists, or will ever be developed. Prisma requires you to be specific, and the reverse functionality you ask for, has a lot of cases where the data type can be very generic. Don't you have a DB, somewhere from where the data comes from and introspect this? |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just started learning Nexus and Prisma and I was wondering if I could generate my Prisma schemas using my Nexus definitions?
For me, this would make a lot of things easier since I would only need to write the code once.
I did find that nexus-prisma plugin, but it seems like that requires me to start off by writing a Prisma schema, which could then generate at least a bare-bone Nexus definition.
To me, this would mean, that I have to write similar code twice, but feel free to correct me if I'm wrong.
Basically, what I'm looking for is a package that does, what the current nexus-prisma plugin does, but in reverse.
Beta Was this translation helpful? Give feedback.
All reactions