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
Bogdan, hi, I need generic over generic responses for my schema. Reactive Mono over relay's Connection So I should provided something like this: relayConfig.connectionType = "reactor.core.publisher.Mono<graphql.relay.Connection<????>>"
But it doesn't work with generic inside generic.
I checked a code, and find the getGenericsStringmethod inside JavaGraphQLTypeMapper.java.
I changed it a bit:
So now I can provide a config variable like this: relayConfig.connectionType = "reactor.core.publisher.Mono<graphql.relay.Connection<%s>>"
And I got a code I need.
Is there a way to achieve the same without generator code changes, and if there is no other way, can you consider such a change inside a master dev?
Thanks.
@ruanfi this code change looks ok to me as it will not break the existing functionality and will provide a more flexible approach.
I've applied the change in #485
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Bogdan, hi, I need generic over generic responses for my schema. Reactive Mono over relay's Connection So I should provided something like this:
relayConfig.connectionType = "reactor.core.publisher.Mono<graphql.relay.Connection<????>>"But it doesn't work with generic inside generic.
I checked a code, and find the
getGenericsStringmethodinsideJavaGraphQLTypeMapper.java.I changed it a bit:
So now I can provide a config variable like this:
relayConfig.connectionType = "reactor.core.publisher.Mono<graphql.relay.Connection<%s>>"And I got a code I need.
Is there a way to achieve the same without generator code changes, and if there is no other way, can you consider such a change inside a master dev?
Thanks.
All reactions