Replies: 1 comment 5 replies
-
@ruanfi this code change looks ok to me as it will not break the existing functionality and will provide a more flexible approach. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
getGenericsStringmethod
insideJavaGraphQLTypeMapper.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.
Beta Was this translation helpful? Give feedback.
All reactions