Hi all, let me just quickly caveat this question b...
# orm-help
e
Hi all, let me just quickly caveat this question by saying that I'm somewhat a newbie with Prisma and Graphql. I'm trying to architecture a web application (SAAS-solution) where a company can write messages to their employees. I'm working with two interfaces 1. the Admin from where the message is created and sent, and 2. the interface where the employee can see and interact with the message. My question, as both interfaces will have overlapping data and individual data how do I go about my data model in the back-end. Do I write a data model (with all of the queries and mutations) in one place or do I split it up? Hope this makes sense 🙂
n
Just write in one place, but you need to add authentication/authorization to make sure each type of user can only do what they're allowed to do
e
@nuno Thx for your help.