Is it possible to combine prisma-client with graphql-yoga?



How to use graphql-yoga and prisma client together? Or there is nothing to worry about and we can simply use them together?

When we do in mutations and queries with graphql-yoga- its like

await ctx.db.mutation.createUser({
    data: {
      name: 'name',
      email: 'email'

Can I still use graphql-yoga but, write this creation with prisma-client, because it’s simpler ?


Yes it is, example here:

#3 gives a 404 . Anyone know the newer location of the example (if any)?


This is the new location:

The readme of the examples repository structures all the examples nicely now:


This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.