What's the best way to manage rules for both the db (Prisma) and the UI (NextJs)? #1030
Closed
gandha9394
started this conversation in
General
Replies: 1 comment 1 reply
-
You have 2 options:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This might be a dumb question.
But I have rules for the db which works very well. Especially with the use of Prisma abilities, I am able to access control the queries and mutations.
But when I need to use it to control the UI like disable a button based on rules, I can't seem to re-use the prsima ability and forced to duplicate the rules for the sake of UI.
Is this how its supposed to be done? The replication of rules feels redundant to me.
Beta Was this translation helpful? Give feedback.
All reactions