hey guys you used to have a page ( maybe the homep...
# orm-help
a
hey guys you used to have a page ( maybe the homepage ) where you showed the comparison of GraphQL with Prisma and WITHOUT Prisma....any link still that I can share with my team?
s
I don’t have a good example to give you, but the biggest difference I saw when comparing an app with and without prisma is that you don’t have to repeat your model and your schema code. Before prisma, I had to define my entire data model in mongoDB and then I had to copy and paste all that code to define my graphQL schema. I had to independently manage those two data structures and it was a nightmare for that website because the schema probably had 200 fields in it. I’d especially get confused when I’d need to make changes because I’d have to immediately make sure I did it in both places. With prisma, it automatically rebuilds all of that every time there is a change. It’s beautiful.
❤️ 1
Just as an example take a look at https://github.com/ailoitte/node-mongodb-graphql-starter You’ll see that we have both a models folder and a graphql/types folder. That’s the sort of thing you can avoid. Look particularly at the
User
model. Now compare that to this prisma example with the user. Here, the user is only defined in one spot: https://github.com/prisma/prisma-examples/blob/master/node-graphql/src/schema.graphql
❤️ 1
a
Thank you @Stephen Jensen for the awesome reply!