docs/reference/zmodel-language #288
Replies: 2 comments 2 replies
-
I would like to understand better how to create custom functions. I went to the linked github page regarding this. However, none of the functions seem to have code in them. It looks like TS but I'm not sure 🤷🏻♂️ Also, I can't find any references to these |
Beta Was this translation helpful? Give feedback.
-
Thanks for taking interest in my goals. My access control conditions are getting a bit wild and I was wondering if I could write a custom function for this. i.e. I have a nested permission structure so I end up doing something like this
This is only going to get hairier if/when I introduce administrative priveledges to each level of the group hierarchy. I have already done some code generation for copy-pasting into my queries since that seems to be the only way that the types work properly in prisma 😑. Maybe I should just do that or it might not be worth it 🤷🏻♂️ ... the IDE support in Webstorm is pretty great! 👍 Partly just curious about all the functionality of the library. |
Beta Was this translation helpful? Give feedback.
-
docs/reference/zmodel-language
ZModel language references
https://zenstack.dev/docs/reference/zmodel-language
Beta Was this translation helpful? Give feedback.
All reactions