-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnionTypeComposer.getType().getTypes() not working #167
Comments
Very strange, needs code demo or test case |
Ok, this seems to only happen with graphql@0.13, something changed concerning const { TypeComposer, UnionTypeComposer } = require('graphql-compose')
const Foo = TypeComposer.create('type Foo { foo: String }')
const Bar = TypeComposer.create('type Bar { bar: String }')
const Union = UnionTypeComposer.create('Union')
Union.setTypes([Foo, Bar])
// graphql@14
console.log(Union.getType().getTypes())
// graphql@0.13
// console.log(Union.getType().getTypes()()) |
0.13.2 14.1 |
Thanks for the investigation. I'll try to fix this today at evening. |
🎉 This issue has been resolved in version 5.10.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Calling
SomeUTC.getTypes()
works as expected, butSomeUTC.getType().getTypes()
does not, seems necessary to callSomeUTC.getType().getTypes()()
. Haven't quite figured out yet where this is happening.The text was updated successfully, but these errors were encountered: