HotChocolate GraphQL error when child-list is null

HotChocolate GraphQL error when child-list is null


0

given this query

{
  name,
  userList {
    firstName,
    lastName
  }
}

if userList (which is a list) is null for one object out of hundreds, I end up with this error
Value cannot be null. (Parameter 'source').
Shouldn’t the GraphQL engine detect the null and just ignore it?

I’ve tried making the userList property nullable, but that doesn’t help.


Load 4 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *