Clojurians
#graphql
<
2018-06-29
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

mattly16:06:24

is there a way to get debug logging for the "Field resolver returned an instance not tagged with a schema type." error?

mattly16:06:52

the query-path indicated for the instance of this error I'm seeing points to a nilable union type

mattly16:06:08

and the results are coming back just fine it seems

hlship16:06:30

There's no logging code or dependency in Lacinia. So you have a (list :MyUnion) and some of the elements are nil? I don't think we handle that case properly, the nil should stay nil and we should not attempt to check its actual type.

mattly16:06:29

I have a (list :MyThing) with a field MyThing/callToAction is the nilable union

mattly16:06:57

not that I think the distinction matter but

mattly16:06:25

every item in the list that has the field is tagged correctly according to __typename

mattly16:06:03

I'm gonna check something real quick

mattly16:06:27

when I have the server filter out the list items where the field is nil, I don't get the error

mattly16:06:58

if there's not a ticket for it I'm happy to file one

hlship16:06:13

Please do. Should be simple to reproduce and fix.