Join Slack
Powered by
Can anyone point me to an example that shows how t...
# graphql-nexus
s
sven
12/04/2020, 10:07 AM
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
Ryan
12/04/2020, 10:28 AM
Hey
@sven
👋 There’s an example of unions
here
but it’s not that detailed. What’s the issue you’re facing?
s
sven
12/04/2020, 10:42 AM
Hey Ryan. I just figured it out. My issue was more related to graphQL than it was with nexus-schema
💯 2
sven
12/04/2020, 10:43 AM
I was using a fragment with a union type. And it didnt reolve. All I received from the query was the __typename
sven
12/04/2020, 10:44 AM
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
3
Views
Open in Slack
Previous
Next