You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had opened a discussion in the ORM repo about adding a feature that transforms the query's result after it's been obtained from the driver, but I had forgotten that this is already possible using the then method on the query builder, since it just extends Promise.
I feel like the fact that the query builders extend Promise is pretty easy to miss, and could be something worth noting in the documentation.
A frequently asked feature in the core API is some findFirst and findFirstOrThrow equivalent, and the documentation can provide an example as to how a developer than implement such functionality:
I had opened a discussion in the ORM repo about adding a feature that transforms the query's result after it's been obtained from the driver, but I had forgotten that this is already possible using the
then
method on the query builder, since it just extendsPromise
.I feel like the fact that the query builders extend
Promise
is pretty easy to miss, and could be something worth noting in the documentation.A frequently asked feature in the core API is some
findFirst
andfindFirstOrThrow
equivalent, and the documentation can provide an example as to how a developer than implement such functionality:The text was updated successfully, but these errors were encountered: