Is there anything special about errors in prisma-c...
# orm-help
j
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
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
Well, that does make things very simple doesn't it. Thanks
j
Yup, pretty much! And you're welcome 🙂