Hi! Beginner question here to make sure Im start...
# orm-help
k
Hi! Beginner question here to make sure Im starting down the right path. Im researching a full stack app. Im really just a little confused on what I can use Prisma / Prisma Client for and when/if I need to reach for Apollo/GraphqlYoga. Any direction to get me started would be much appreciated 🙂. Id love to take advantage of Prisma for as much as I can!
h
Hi 👋 , Basically prisma will give you a CRUD api, pagination, subscriptions and other good stuff. But to add your own logic like authentication you need to have a separate server that will interface with prisma. Think prisma as the database layer of your application and the graphql-yoga/apollo-server as the application layer.
k
Thanks so much for the direction @Harshit! Is Prisma Client a good replacement for Apollo Client? When I was looking into this stuff a few months back Prisma Client wasnt out.
f
@KenJazzy No, Prisma Client is a tool you use in your backend to communicate with your Prisma service (hence with the DB). Apollo Client is a tool you use in your frontend to communicate with your backend (Apollo Server or GraphQL Yoga). They are completely different tools. If you are wondering about Apollo Server and GraphQL Yoga, I’d personally recommend Apollo Server v2
k
Thanks for clarifying Fran 🙂. That information is super useful and for sure helps me clarify! You guys are the best! I’ll start building some small projects and demos to get up to speed
f
If you want to see an example, I’m maintaining this boilerplate: https://github.com/frandiox/vue-graphql-enterprise-boilerplate
You can ignore the Vue part if you don’t use it
the rest is probably useful. It uses prisma-binding instead of Prisma Client, though.
k
Awesome! Youre the man