Is there anything special about errors in prisma-client? I couldn't find any mention of validation in the docs. When I want to fail validation shall I just
throw new Error("message")
or are there any special error codes or error objects I should be using?
j
Jenkins
03/26/2019, 6:38 AM
Since GraphQL doesn't deal with status-codes, the only way of returning an error is throwing an exception. You can make it as descriptive as you need it to be.
j
James
03/26/2019, 9:12 AM
Well, that does make things very simple doesn't it. Thanks