Open b33son opened 5 years ago
Check out https://github.com/prisma/prisma-examples/tree/ab9f66125d2efb226a1f87cbadd9f03f3ff7c112/typescript/graphql for a smaller example using Prisma with graphqlgen.
I got it all figured out now, but not without some significant struggle that could have been avoided. I was able to do it by looking at a lot of different projects. I guess what's really not made clear is the work flow for adding to the database and what each generation tool does.
I wish I focused on that project. The readme does have the correct process for developing. I guess I'm suggesting this process be added to the official documentations / tutorial pages.
I've created projects using graphqlgen (https://oss.prisma.io/graphqlgen/)_ and using prisma init (https://www.prisma.io/docs/1.22/get-started/01-setting-up-prisma-new-database-JAVASCRIPT-a002/)
It is not at all clear to me how to configure each and what prisma generate does vs graphqlgen. I can't be the only one that's thoroughly confused by how to setup a project correctly. Currently, the prisma docs just say graphqlgen exists but not how to do anything with it. The graphqlgen docs don't mention Prisma at all.
Updating the guides on how to integrate both would be really helpful to myself and others. If this documentation exists somewhere already, please send me to it. I'm so confused.