Hector
09/03/2021, 6:40 PMschema.prisma
file and the nexus code which generates the schema.graphql
file. How do I make Prisma use the file generated by Nexus to generate the Client and push changes to the DB? Thanks for the help.Ryan
09/06/2021, 5:12 AMschema.prisma
and the other being Nexus resolvers. The resolvers will generate a schema.graphql
file that will be needed to serve your GraphQL API.
One way around this is autogenerating resolvers using plugins like these to generate your schema.graphql
from your schema.prisma
.
https://paljs.com/generator/nexus
https://typegraphql.com/docs/prisma.html
How do I make Prisma use the file generated by Nexus to generate the Client and push changes to the DB?This is not possible. It’s only the other way around, i.e. GraphQL schema from Prisma schema and that’s the way it should be.
Hector
09/06/2021, 1:53 PM