Wrong nullable types with fluent API in Prisma 5.0 #20183
Labels
5.0.0
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: fluent api
topic: prisma-client
Milestone
Bug description
We use Fluent API very often and it works very well.
Since Prisma version 5.0, results for related models queried with fluent API are nullable, although
findUniqueOrThrow
was used on the base model and the relation field is not optional.How to reproduce
null
"Expected behavior
In versions <5.0.0, queries for non-nullable related models with fluent api were non-nullable.
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: