findOne functions for local API #4167
tyteen4a03
started this conversation in
Feature Requests & Ideas
Replies: 1 comment 1 reply
-
Agree, it should also skip pagination resolving ( |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
There are times where I only expect one entity from a
find
operation. It would be great if we can have afindOne
function that doesn't require us to unwrapdocs
.Additionally, it would be great to have a
findOneOrFail
function where if multiple docs match the predicate, the function throws an exception instead.Beta Was this translation helpful? Give feedback.
All reactions