Closed rhythnic closed 4 years ago
Write validation functions for model mutations. Call these functions from the models. Remove validation logic from the HTTP request handlers.
I'm rethinking this, as we have Prisma checking types, authorization in the REST handlers, and we can do conditional logic in the models.
Write validation functions for model mutations. Call these functions from the models. Remove validation logic from the HTTP request handlers.