Closed fabien0102 closed 2 years ago
We don't throw on any error, when there's a situation not possible we return null. We have discussed in the past adding actionOrThrow
methods: https://xata-hq.slack.com/archives/C032EKCBUGM/p1657121418430689?thread_ts=1657121418.430689&cid=C032EKCBUGM
Will keep this issue to implement those.
Sorry if my original issue was not clear enough, but from the method documentation, this method should throws if the record can't be found.
Describe the bug With the following code (simple expressjs app)
I was expecting a
400
status if I send"yolo"
asid
but instead I have a204
and this in my console:Expected behavior I was expecting to throw an exception since the
id
is not valid.Software version
"@xata.io/client": "0.16.1"