When I set up the advanced Node js boilerplate, I ...
# prisma-whats-new
r
When I set up the advanced Node js boilerplate, I noticed I have a type User defined in both my application schema as well as my datamodel. However, the Post type is only defined in the database schema. Can somebody explain to me why the User type is defined twice?
m
The difference is in
password
property. By creating a new
User
type we ensure that
password
won’t pass through.
👍 1