Hi, I've been looking at how I can automate the pr...
# orm-help
y
Hi, I've been looking at how I can automate the process from schema to graphql schema. Unfortunately, using the generators currently, it has security risks & does not work well with computed properties (i.e full name from first name & last name). Additionally, I cannot regenerate the classes as it will override any changes. So I want to look into making custom decorators for the prisma schema. An example would be
Copy code
model User {
    @ComputedProperty(firstName, lastName)
    fullName string
}
Does Prisma support such functionality or does it intend too in the future?
1
j
If you mean computed field. I can say no at this moment. https://www.prisma.io/docs/concepts/components/prisma-client/computed-fields
y
Yeah, thank you!
I will look at other options then