Hey folks, why aren’t the client api methods’ resp...
# orm-help
j
Hey folks, why aren’t the client api methods’ responses standardized? Example, the
create
method does not explicitly throw an error in the Docs, but
update
and
delete
does. The method
findFirst
has a second option that’s
findFirstOrThrow
. Why aren’t all of these standardized, like making all of them throw an error when failed? That would be better for using I guess.
👀 1
1
n
Hello @João Vitor Casarin 👋 We do have a GitHub Issue for API standardization: #6440 If you could leave a 👍 to the Issue then it would help us in prioritising it. Meanwhile, are you suggesting updating the docs to make it more clear that create doesn’t throw an error but update and delete does?
❤️ 1
j
hey! that's great, thanks for pointing that issue!
mhmm actually the create docs should state that it returns a PrismaClient error or something like that
update and delete docs are fine
n
Do you mind creating a Docs Issue for this?
👍 1