James
11/10/2021, 10:43 AMmanuel
11/10/2021, 10:49 AMnikolasburk
James
11/10/2021, 12:13 PMJames
11/10/2021, 12:15 PMmanuel
11/10/2021, 2:23 PMmanuel
11/10/2021, 2:23 PMnikolasburk
i’m thinking to have a directory for each domain/module of my app@James I think this approach generally makes sense! When you speak of organising
.graphql files with graphql-code-generator, do you mean on the frontend or on the backend by the way?nikolasburk
My current point of view is just add an enum to every row permission (isSuperUser, isUser) something like that and handle it with the prisma query where permission = isSuperUser.@manuel that sounds fine to me if you want to handle this on the application layer. If you’re using PostgreSQL, you could still look into row-level access control on the DB layer as well. While this can’t be natively represented in the Prisma schema, you can always customize the migration files generated by Prisma Migrate with some dedicated SQL to achieve your goal here 🙂
James
11/10/2021, 2:31 PMJames
11/10/2021, 2:32 PM@include(if: ?manuel
11/10/2021, 2:34 PMmanuel
11/10/2021, 2:35 PM.graphql and just show what you need.James
11/10/2021, 2:37 PMmanuel
11/10/2021, 2:38 PMmanuel
11/10/2021, 2:39 PMJames
11/10/2021, 3:54 PM