Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Prisma Integration How to #332

Open
b33son opened this issue Dec 5, 2018 · 2 comments
Open

Prisma Integration How to #332

b33son opened this issue Dec 5, 2018 · 2 comments

Comments

@b33son
Copy link

b33son commented Dec 5, 2018

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.

@denkristoffer
Copy link

Check out https://github.com/prisma/prisma-examples/tree/ab9f66125d2efb226a1f87cbadd9f03f3ff7c112/typescript/graphql for a smaller example using Prisma with graphqlgen.

@b33son
Copy link
Author

b33son commented Dec 5, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants