Why query
doesn't have findOrFail
?
#4028
Unanswered
stereobooster
asked this question in
Help
Replies: 1 comment
-
Sounds like maybe const node = await Node.query()
.preload('attributes')
.where('id', cntx.params.id)
.firstOrFail() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm coming from Rails world. Based on my experience I would expect it to work. I guess there can be a limitation which I'm not aware of. Also it can happen that I overlooked something. Now instead of:
I have to write
Beta Was this translation helpful? Give feedback.
All reactions