You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
can't use typereference as possibleType in uniontype #382
Is this on purpose? Is there a workaround to allow two objects to reference each other in fields with a union type? i.e. How can I make the code below work?
I made a fix in jauco/graphql-java@85453f8483b74238bc303f0112776acca8be82e5 I'm not sure if this is the best solution, and I don't know how to run gradle unittests so I'm not submitting a PR right now.
Activity
jauco commentedon Apr 20, 2017
I'm now fairly sure this is a bug:
jauco commentedon Apr 21, 2017
I made a fix in jauco/graphql-java@85453f8483b74238bc303f0112776acca8be82e5 I'm not sure if this is the best solution, and I don't know how to run gradle unittests so I'm not submitting a PR right now.
But if you think this is a good approach I will.
bbakerman commentedon Apr 27, 2017
to run tests in gradle just do
./gradlew clean build
This will build and run all the tests.
I personally use IDEA and run the tests from inside the project.
bbakerman commentedon Apr 28, 2017
Ok I looked into this issue. There is a way to do what you want but the method is perhaps hidden from you
I created #393 to improve the documentation
You need to use this format
This creates a reference that IS a GraphQLObjectType and also a TypeReference
jauco commentedon Apr 28, 2017
thanks!