Fork me on GitHub
#graphql
<
2019-01-30
>
hiredman01:01:37

I am having an issue, and I am not sure if it is a problem with my understanding or a problem with code. I am using lacinia and I have a schema that returns some map, and that map has a key there the value is some map, or nil, and that map has a field that is non-null.

hiredman01:01:45

when I run a query, when some map is nil, I am getting an error about the field being nil, but it seems like it should expect that the whole some map can be nil

hlship17:01:47

Well, there is a difference between returning nil, and returning an empty map, for example. Any possible way you can put together a simple example? I would say that the nil checking logic is rock solid, but the nil collapsing logic, in Lacinia, is more complicated.