Can anyone point me to an example that shows how t...
# graphql-nexus
s
Can anyone point me to an example that shows how to use the unionType ? I think I understand it but it doesnt behave the way I want it to.
r
Hey @sven 👋 There’s an example of unions here but it’s not that detailed. What’s the issue you’re facing?
s
Hey Ryan. I just figured it out. My issue was more related to graphQL than it was with nexus-schema
💯 2
I was using a fragment with a union type. And it didnt reolve. All I received from the query was the __typename
Once I removed the fragment and just pasted the full query, it worked. So I conclude, I was doing something wrong with the fragment
💯 1