Arky
PPrisma
•Created by Arky on 10/18/2024 in #help-and-questions
Validate Model
Problematic
I would like to use
Prisma.validator
(or something else provided by Prisma) in order to validate a model
Context
Solutions
I know i can override the Model
in order to pass the name of the model but would really like to make it the cleanest possible and use only Prisma.
I also know you can create type guard functions using the uniques fields of my model but same thing not as clean as using a Prisma function.
ex:
Resources
- https://github.com/prisma/prisma/issues/3528
Thank you for your time if you help me with this :prismasmile:4 replies