Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a Prisma example #371

Closed
ghost opened this issue Oct 5, 2018 · 1 comment
Closed

add a Prisma example #371

ghost opened this issue Oct 5, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 5, 2018

i recently discovered prisma working with gqlgen.

Prisma is like an ORM and so handles all the communication with your database. It can work with sql, nosql, kv or other.
So it works with gqlgen, and code gens all the database communication code.

Here is the example using gqlgen:
https://github.com/prisma/prisma-examples/tree/master/go-graphql

Databases:
mysql: done
cockroachdb: prisma/prisma#1705

@ghost
Copy link
Author

ghost commented Oct 5, 2018

Because gqlgen does so much of the work for you, it makes me wonder if anyone has thought of adding codegen for the database layer also. ?

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

No branches or pull requests

2 participants