Jacob Ross
05/03/2022, 3:08 PMstartsAt and endsAt we will add decorators to the entity so that startsAt < endsAt and vice versa. However when input for update comes in we only get the time to update and not both. we need a layer that checks that the update is valid before we call Prisma.client.model.update() to update the model. Prisma.Client does not know about the validation and it’s not applicable in the Prisma.Schema .
Does anyone know of an elegant way to handle this need?Nurul
05/04/2022, 3:03 PM