hello, I was wondering if prisma would be suitable...
# orm-help
s
hello, I was wondering if prisma would be suitable for a blog api since I'm confused about something things like directives or protective fields. There is no mention of it. I also saw this https://www.prisma.io/docs/tutorials/connect-to-prisma-from-the-frontend-fbgaeyrou7 which seems to confirm it. Will it be hard to add an authentication or role layer on top of prisma project? or adding protective fields?
a
It's 100% possible. I'm working on a Prisma project with authentication and data protection. The article you linked to is showing a set up that's good for messing around with Prisma, but wouldn't be used in the real world. A real-world set up would involve a client, a server, and prisma. The server, such as a Node server, would expose a GraphQL API that has authentication and data protection. The Node server would then connect to the Prisma service to manage data storage. The have a great set of projects that cover this set up here: https://github.com/graphql-boilerplates/node-graphql-server Working though all the code for the "advanced" version really helped me figure this architecture out.
👌 1
j
c
Have you checked Gatsby + Netlify? Easy quick setup and includes authentication