Closed IceBlizz6 closed 1 year ago
I spent many hours investigating this issue. I'm using Kotlin so Publisher return type is non-null by default unless i explicitly add the question mark in the type (Publisher<..>?)
I think the people using java may be happy for a fix here too though.
Nice catch! Will fix!
I believe i found a bug in PublisherAdapter.
Let's say you have a subscription that returns a non-null Publisher value.
Then the call to unwrapList is called as expected.
But the call just returns type. This is because GraphQLList is now wrapped in GraphQLNonNull So 'type instanceof GraphQLList' becomes false.
I made an attempt to include an additional check for GraphQLNonNull wrapper and it seems to work. Code is a bit messy though, but hopefully it gives you the idea for a solution.