-
-
Notifications
You must be signed in to change notification settings - Fork 804
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.
Description
Is there an existing issue for this?
- I have searched the existing issues
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
query {
parents{
id,
children{
id,
... on ChildModelA {
a
}
... on ChildModelB {
b
}
}
}
parentDtos{
id,
children{
id,
... on ChildDtoA {
a
}
}
}
}
Relevant log output
No response
Additional Context?
No response
Version
13.0.5
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.
