-
-
Notifications
You must be signed in to change notification settings - Fork 803
queries with abstract types in a list return null #5983
Copy link
Copy link
Closed
Labels
Area: DataIssue is related to filtering, sorting, pagination or projectionsIssue is related to filtering, sorting, pagination or projections🌶️ hot chocolate🔍 investigateIndicates that an issue or pull request needs more information.Indicates that an issue or pull request needs more information.
Metadata
Metadata
Assignees
Labels
Area: DataIssue is related to filtering, sorting, pagination or projectionsIssue is related to filtering, sorting, pagination or projections🌶️ hot chocolate🔍 investigateIndicates that an issue or pull request needs more information.Indicates that an issue or pull request needs more information.
Is there an existing issue for this?
Product
Hot Chocolate
Describe the bug
when having a model with a list of baseclass that is mapped to dtos it returns null.
when orignally encountering the bug graphql will return a list where each object is null.
in the repro i get an error instead: Cannot return null for non-nullable field.
when adding tolist asqueryable in the query type i can see that the data is there
also when doing the same query without the dto conversion is working fine
Steps to reproduce
Relevant log output
No response
Additional Context?
No response
Version
13.0.5