-
-
Notifications
You must be signed in to change notification settings - Fork 744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Projection middleware checks for null on non-nullable field, resulting in exception for complex type in EF Core 8 #6604
Comments
@PascalSenn Would you be able to point to the code that is responsible for adding this null check? |
This exception is a bit weird. The visitor is able to "skip all null checks": Lines 93 to 104 in 3f7f160
but in the case of ef core we added it back: Line 85 in 3f7f160
Do you have a stacktrace for the exception? does it work when we use default? |
I believe |
Is there an existing issue for this?
Product
Hot Chocolate
Describe the bug
The projection middleware is generating this query:
Which results in an EF Core 8 exception when using complex types:
User.AccountStatus
is non-nullable, so it shouldn't be checking for null like this.Steps to reproduce
I'll provide a reproduction repository if it helps, but it's probably not necessary.
Relevant log output
No response
Additional Context?
No response
Version
13.5.1
The text was updated successfully, but these errors were encountered: