Hi, Could someone explain why I would want React ...
# orm-help
w
Hi, Could someone explain why I would want React -> Apollo -> Prisma vs React -> Prisma ?
w
prisma is a SERVER, apollo is a CLIENT that connects to the SERVER ๐Ÿ™‚
btw, don't confuse Apollo server and Apollo Client, i think you are taking about Client, the
apollo-react
and
apollo-boost
?
w
I assume I would use apollo-react and apollo-boost to connect react to prisma. Why would I want the middleman though? Why should I use apollo client over something like generated prisma client?
n
Have you had look into gatsby.js itโ€™s pretty much just react and graphql
The way I understand with prisma-client it that it offers more intellense for the developer. Stuff like auto-completion and auto-suggestions given that the graphql it typed it should be easier write the server. https://www.howtographql.com/graphql-js/4-adding-a-database/ https://www.prisma.io/blog/prisma-client-preview-ahph4o1umail
w
@Nick Thanks for the answer. I don't think Gatsby.js is something that i'm looking for. Still a bit unclear on why apollo client vs generated prisma client for a react frontend. If anyone could provide clarification, I'd appreciate it ๐Ÿ™‚