all prisma does is wrap your db with some nicely t...
# orm-help
y
all prisma does is wrap your db with some nicely typed structures so you can use it, and then it also has some helpers for using with graphql
o
@Yehonatan Levi Thank really! but then still I have a question. I studying graphql with 
graph-yoga
, however 
graphql-yoga
 is using 
prisma client
 of 
prisma1
, therefore If I  wanted to use 
grapghql-yoga
 then should I use prisma1? or we can just use prisma2.
j
@omnyx2 hi! we use graphql-yoga and are going through the upgrade process right now. You can easily pass in the new Prisma client through the context of the yoga server. Here's what it looks like for us. Note: we're investigating how to add the recommended
prisma.disconnect()
after a request is finished.
v
@omnyx2 Based on your comment, this example should help: https://github.com/prisma/prisma-examples/tree/master/typescript/graphql-auth
o
@jonthewayne @Vince Biro Thanks for advice! Now I got it. I should try with
prisma2
!
👍 1